Skip to content

refactor(@angular/cli): re-add resolveModule for find examples tool#33129

Merged
clydin merged 1 commit intoangular:21.2.xfrom
clydin:readd-resolve-module-host
May 5, 2026
Merged

refactor(@angular/cli): re-add resolveModule for find examples tool#33129
clydin merged 1 commit intoangular:21.2.xfrom
clydin:readd-resolve-module-host

Conversation

@clydin
Copy link
Copy Markdown
Member

@clydin clydin commented May 5, 2026

No description provided.

@clydin clydin added the target: patch This PR is targeted for the next patch release label May 5, 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 introduces a resolveModule method to the Host interface and provides an implementation in LocalWorkspaceHost using Node's createRequire. Review feedback identifies a security risk where createRootRestrictedHost could bypass root restrictions if not updated, and suggests a correction to resolveModule to ensure it handles directory paths correctly. Additionally, MockHost requires an implementation to maintain test compatibility.

Comment thread packages/angular/cli/src/commands/mcp/host.ts
Comment thread packages/angular/cli/src/commands/mcp/host.ts
@clydin clydin force-pushed the readd-resolve-module-host branch from dbcb1b0 to 923326c Compare May 5, 2026 13:47
@clydin clydin requested a review from alan-agius4 May 5, 2026 13:55
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label May 5, 2026
@clydin clydin merged commit 111dcc3 into angular:21.2.x May 5, 2026
35 checks passed
@clydin
Copy link
Copy Markdown
Member Author

clydin commented May 5, 2026

This PR was merged into the repository. The changes were merged into the following branches:

@clydin clydin deleted the readd-resolve-module-host branch May 5, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/cli target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants