Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
folders[].struct/folders[].structkitso users can inspect nested structure references, detect missing targets, and find cycles.Description
GraphCommandinstructkit/commands/graph.pythat builds a dependency graph from structure definitions, de-duplicates edges, reports missing references and cycles, and emitstext,json, ormermaidoutput.graphin the main CLI (structkit/main.py) and document the command indocs/cli-reference.md._graph_structure_logic, agraph_structuretool registration, and a compatibility handler_handle_graph_structureinstructkit/mcp_server.py, and document the MCP tool indocs/mcp-integration.md.tests/test_graph_command.pycovering single/multiple/nested dependencies, missing nodes, cycles, local YAML input,--allmode, JSON/Mermaid output, and MCP compatibility.Testing
pytest tests/test_graph_command.py -q, which passed.pytest tests/test_graph_command.py tests/test_mcp_integration.py -q, which passed.pytest -q, which passed (all tests green).Codex Task