Roject Manager¶
ProjectManager
¶
Manages a software project by analyzing its structure and dependencies.
Attributes:
Name | Type | Description |
---|---|---|
repo_path |
The path to the repository being analyzed. |
|
project_hierarchy |
The relative path within the repository to the project_hierarchy.json file. |
|
graph |
A networkx graph representing the project's dependency structure. |
Source code in repo_agent/project_manager.py
__init__(repo_path, project_hierarchy)
¶
Initializes a project analysis environment with the repository path and location of its project hierarchy definition.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
repo_path
|
The path to the repository being analyzed. |
required | |
project_hierarchy
|
The relative path within the repository to the project_hierarchy.json file. |
required |
Returns:
Type | Description |
---|---|
None |
Source code in repo_agent/project_manager.py
build_path_tree(who_reference_me, reference_who, doc_item_path)
¶
Constructs a hierarchical tree structure representing relationships between documentation paths, visualizing references to and from a given item.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
who_reference_me
|
A list of paths that reference this item. |
required | |
reference_who
|
A list of paths that this item references. |
required | |
doc_item_path
|
The path to the documentation item. |
required |
Returns:
Name | Type | Description |
---|---|---|
str |
A string representation of the constructed path tree. |
Source code in repo_agent/project_manager.py
get_project_structure()
¶
No valid docstring found.