feat: extend reporter #22
Merged
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.
This pull request refactors and improves the design system violation reporting tools in the Angular MCP server package. The main focus is on providing more structured, machine-readable output for violation reports, improving type safety, and making the output easier to consume programmatically. It also clarifies documentation and error handling, and removes legacy or redundant code.
Key improvements and changes:
1. Structured, machine-readable output for violation reports
report-violations(single component) andreport-all-violations(all components) tools now return structured JSON objects instead of plain text arrays, making them easier to consume by other tools or scripts. [1] [2] [3] [4]2. Type and interface updates for violation reporting
ViolationEntry,ComponentViolationReport,AllViolationsEntry,AllViolationsComponentReport, and others, to better represent the new output structure. [1] [2]3. Improved violation message parsing and processing
4. Enhanced documentation and schema descriptions
directoryandcomponentNamefields in schemas to clarify their intent and usage.5. Error handling and code cleanup
llms.txt) and design system component scanning to silently ignore errors instead of logging them, reducing console noise. [1] [2]These changes make the violation reporting tools more robust, easier to integrate with other systems, and more user-friendly for both CLI and programmatic use.
References: