Add polyglot exports for Aspire.Hosting.Yarp#14901
Merged
sebastienros merged 5 commits intorelease/13.2from Mar 4, 2026
Merged
Add polyglot exports for Aspire.Hosting.Yarp#14901sebastienros merged 5 commits intorelease/13.2from
sebastienros merged 5 commits intorelease/13.2from
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds polyglot (capability-based) exports for Aspire.Hosting.Yarp APIs and introduces a TypeScript validation AppHost project to exercise the generated polyglot surface.
Changes:
- Annotates YARP hosting and transform extension methods with
AspireExportfor polyglot hosting. - Adds a TypeScript “ValidationAppHost” playground including generated
.modulesclient/transport code and minimalapphost.ts. - Adds Node/TypeScript project configuration (
package.json,tsconfig.json, Aspire settings) for running the playground.
Reviewed changes
Copilot reviewed 15 out of 17 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Aspire.Hosting.Yarp/YarpResourceExtensions.cs | Adds AspireExport attributes for YARP resource builder extension methods. |
| src/Aspire.Hosting.Yarp/ConfigurationBuilder/Transforms/ResponseTransformExtensions.cs | Exports response transform extensions for polyglot hosts. |
| src/Aspire.Hosting.Yarp/ConfigurationBuilder/Transforms/RequestHeadersTransformExtensions.cs | Exports request-header transform extensions for polyglot hosts. |
| src/Aspire.Hosting.Yarp/ConfigurationBuilder/Transforms/QueryTransformExtensions.cs | Exports query transform extensions for polyglot hosts. |
| src/Aspire.Hosting.Yarp/ConfigurationBuilder/Transforms/PathTransformExtensions.cs | Exports path transform extensions for polyglot hosts. |
| src/Aspire.Hosting.Yarp/ConfigurationBuilder/Transforms/HttpMethodTransformExtensions.cs | Exports HTTP method transform extensions for polyglot hosts. |
| src/Aspire.Hosting.Yarp/ConfigurationBuilder/Transforms/ForwardedTransformExtensions.cs | Exports forwarded/X-Forwarded-* transform extensions for polyglot hosts. |
| playground/polyglot/TypeScript/Aspire.Hosting.Yarp/ValidationAppHost/tsconfig.json | TS compiler configuration for the validation app host. |
| playground/polyglot/TypeScript/Aspire.Hosting.Yarp/ValidationAppHost/package.json | Node package metadata and scripts for the validation app host. |
| playground/polyglot/TypeScript/Aspire.Hosting.Yarp/ValidationAppHost/apphost.ts | Minimal TS app host that calls builder.addYarp('proxy'). |
| playground/polyglot/TypeScript/Aspire.Hosting.Yarp/ValidationAppHost/apphost.run.json | Local run profile configuration for the validation app host. |
| playground/polyglot/TypeScript/Aspire.Hosting.Yarp/ValidationAppHost/.modules/transport.ts | Generated JSON-RPC transport/client implementation for polyglot hosting. |
| playground/polyglot/TypeScript/Aspire.Hosting.Yarp/ValidationAppHost/.modules/base.ts | Generated core SDK primitives (handles, reference expressions, list/dict wrappers). |
| playground/polyglot/TypeScript/Aspire.Hosting.Yarp/ValidationAppHost/.modules/aspire.ts | Generated capability-based TypeScript SDK surface for Aspire (+ YARP exports). |
| playground/polyglot/TypeScript/Aspire.Hosting.Yarp/ValidationAppHost/.modules/.codegen-hash | Records codegen hash for the generated .modules output. |
| playground/polyglot/TypeScript/Aspire.Hosting.Yarp/ValidationAppHost/.aspire/settings.json | Aspire polyglot settings for the validation project and package reference. |
Files not reviewed (1)
- playground/polyglot/TypeScript/Aspire.Hosting.Yarp/ValidationAppHost/package-lock.json: Language not supported
playground/polyglot/TypeScript/Aspire.Hosting.Yarp/ValidationAppHost/.modules/base.ts
Show resolved
Hide resolved
playground/polyglot/TypeScript/Aspire.Hosting.Yarp/ValidationAppHost/.modules/transport.ts
Show resolved
Hide resolved
playground/polyglot/TypeScript/Aspire.Hosting.Yarp/ValidationAppHost/.modules/transport.ts
Show resolved
Hide resolved
76 tasks
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 14901Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 14901" |
Contributor
🎬 CLI E2E Test RecordingsThe following terminal recordings are available for commit
📹 Recordings uploaded automatically from CI run #22647431948 |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
davidfowl
approved these changes
Mar 4, 2026
Copilot AI
pushed a commit
that referenced
this pull request
Mar 10, 2026
* Add polyglot exports for Aspire.Hosting.Yarp Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Refine AspireExport descriptions for polyglot-yarp Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Use generated methods in yarp apphost Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Expand yarp apphost generated method coverage Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Expose Yarp transform methods to polyglot apphost Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Related to #14069