feat(sdm): inject structural dependency mapping tags across codebase
Adds [C: caller] tags to functions/methods and [M: mutation] / [U: usage] tags to class variables based on cross-module call analysis.
This commit is contained in:
+11
-6
@@ -13,7 +13,7 @@ class Bead:
|
||||
class BeadsClient:
|
||||
def __init__(self, working_dir: Path):
|
||||
"""
|
||||
[C: src/mcp_client.py:_DDGParser.__init__, src/mcp_client.py:_TextExtractor.__init__]
|
||||
[C: src/mcp_client.py:_DDGParser.__init__, src/mcp_client.py:_TextExtractor.__init__]
|
||||
"""
|
||||
self.working_dir = Path(working_dir)
|
||||
self.repo_dir = self.working_dir / ".beads_mock"
|
||||
@@ -21,7 +21,8 @@ class BeadsClient:
|
||||
|
||||
def init_repo(self) -> None:
|
||||
"""
|
||||
Initialize the mock repository.
|
||||
|
||||
Initialize the mock repository.
|
||||
[C: tests/test_aggregate_beads.py:test_build_beads_compaction, tests/test_beads_client.py:test_beads_init_and_query, tests/test_gui_dag_beads.py:test_load_active_tickets_from_beads, tests/test_mcp_client_beads.py:test_bd_mcp_tools]
|
||||
"""
|
||||
self.repo_dir.mkdir(parents=True, exist_ok=True)
|
||||
@@ -30,14 +31,16 @@ class BeadsClient:
|
||||
|
||||
def is_initialized(self) -> bool:
|
||||
"""
|
||||
Check if the repository is initialized.
|
||||
|
||||
Check if the repository is initialized.
|
||||
[C: src/mcp_client.py:dispatch, tests/test_beads_client.py:test_beads_init_and_query]
|
||||
"""
|
||||
return self.beads_file.exists()
|
||||
|
||||
def create_bead(self, title: str, description: str) -> str:
|
||||
"""
|
||||
Create a new bead and return its ID.
|
||||
|
||||
Create a new bead and return its ID.
|
||||
[C: src/mcp_client.py:dispatch, tests/test_aggregate_beads.py:test_build_beads_compaction, tests/test_beads_client.py:test_beads_init_and_query, tests/test_gui_dag_beads.py:test_load_active_tickets_from_beads]
|
||||
"""
|
||||
beads = self._read_beads()
|
||||
@@ -49,7 +52,8 @@ class BeadsClient:
|
||||
|
||||
def update_bead(self, bead_id: str, status: str) -> bool:
|
||||
"""
|
||||
Update the status of an existing bead.
|
||||
|
||||
Update the status of an existing bead.
|
||||
[C: src/mcp_client.py:dispatch, tests/test_aggregate_beads.py:test_build_beads_compaction, tests/test_beads_client.py:test_beads_init_and_query]
|
||||
"""
|
||||
beads = self._read_beads()
|
||||
@@ -62,7 +66,8 @@ class BeadsClient:
|
||||
|
||||
def list_beads(self) -> List[Bead]:
|
||||
"""
|
||||
List all beads.
|
||||
|
||||
List all beads.
|
||||
[C: src/gui_2.py:App._render_beads_tab, src/mcp_client.py:dispatch, tests/test_beads_client.py:test_beads_init_and_query]
|
||||
"""
|
||||
return [Bead(**b) for b in self._read_beads()]
|
||||
|
||||
Reference in New Issue
Block a user