Skip to content

Conversation

clydin
Copy link
Member

@clydin clydin commented Oct 6, 2025

The list_projects tool is enhanced to include the primary builder for each project, providing more specific metadata about its function.

The builder is extracted from the project's 'build' target and added as an optional 'builder' field to the output. This allows users and other tools to quickly determine a project's type (e.g., application, library) by inspecting its builder string.

The tool's description has also been updated to reflect this new capability.

clydin added 2 commits October 6, 2025 10:35
The main handler for the `list_projects` tool was becoming complex, with the main loop handling file parsing, version discovery, and multiple error paths.

This change extracts the logic for processing a single `angular.json` file into a new `processConfigFile` helper function. This refactoring improves the codes structure by separating the orchestration logic in the main handler from the implementation details of processing a file.

This leads to a more modular, readable, and maintainable codebase with no change to the tools external behavior or output.
The `list_projects` tool is enhanced to include the primary builder for each project, providing more specific metadata about its function.

The builder is extracted from the project's 'build' target and added as an optional 'builder' field to the output. This allows users and other tools to quickly determine a project's type (e.g., application, library) by inspecting its builder string.

The tool's description has also been updated to reflect this new capability.
@clydin clydin added target: major This PR is targeted for the next major release action: review The PR is still awaiting reviews from at least one requested reviewer labels Oct 6, 2025
@angular-robot angular-robot bot added detected: feature PR contains a feature commit area: @angular/cli labels Oct 6, 2025
@clydin clydin requested a review from alan-agius4 October 6, 2025 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: review The PR is still awaiting reviews from at least one requested reviewer area: @angular/cli detected: feature PR contains a feature commit target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant