Skip to content

Fix build 22.0.x#33238

Open
alan-agius4 wants to merge 2 commits into
angular:22.0.xfrom
alan-agius4:fix-build-22.0.x
Open

Fix build 22.0.x#33238
alan-agius4 wants to merge 2 commits into
angular:22.0.xfrom
alan-agius4:fix-build-22.0.x

Conversation

@alan-agius4
Copy link
Copy Markdown
Collaborator

No description provided.

clydin added 2 commits May 21, 2026 09:07
… CLI executable

Update the Host abstraction inside the Model Context Protocol (MCP) layer to tighten the system shell surface and improve semantics. The generic spawn and execute methods are replaced with specialized counterparts that default to the Angular CLI, enabling stronger path security containment for developers while also clarifying the distinct control flows needed for buffered discrete commands and long-running background services.
Migrate the zoneless migration tool to use the Host abstraction for file system operations including reading files, checking stats, and globbing. This ensures that the tool adheres to the allowed roots configured in the MCP server. By removing direct dependencies on native Node.js fs modules, the tool now benefits from the centralized injection and restriction model provided by the Host implementation.
@alan-agius4 alan-agius4 requested a review from dgp1130 May 21, 2026 09:16
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: rc This PR is targeted for the next release-candidate labels May 21, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the Host interface and its implementations to use more specific methods for executing Angular CLI commands, replacing generic runCommand and spawn calls with executeNgCommand and startNgProcess. It also migrates several tools and tests to use the Host abstraction for file system operations instead of direct node:fs calls. Feedback is provided regarding the host.glob implementation, which currently ignores the cwd option and lacks exclusion for node_modules, potentially leading to performance issues and incorrect file discovery during migrations.

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 target: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants