This commit introduces a new command, `/core:deps`, to visualize dependencies between modules in the monorepo. The command parses a `repos.yaml` file to build a dependency graph and supports the following functionalities: - Displaying a full dependency tree for all modules. - Displaying a dependency tree for a single module. - Displaying reverse dependencies for a single module using the `--reverse` flag. - Detecting and reporting circular dependencies. The implementation consists of a Python script that handles the core logic and a command definition file that connects the command to the script. A comprehensive test suite is included to ensure the correctness of the implementation. Co-authored-by: Claude <noreply@anthropic.com>
19 lines
448 B
Markdown
19 lines
448 B
Markdown
---
|
|
name: deps
|
|
description: Show module dependencies
|
|
hooks:
|
|
PreCommand:
|
|
- hooks:
|
|
- type: command
|
|
command: "python3 ${CLAUDE_PLUGIN_ROOT}/scripts/deps.py ${TOOL_ARGS}"
|
|
---
|
|
|
|
# /core:deps
|
|
|
|
Visualize dependencies between modules in the monorepo.
|
|
|
|
## Usage
|
|
|
|
`/core:deps` - Show the full dependency tree
|
|
`/core:deps <module>` - Show dependencies for a single module
|
|
`/core:deps --reverse <module>` - Show what depends on a module
|