Skip to content

Add Tesserae.Playground.Host with H5 Compiler Service#56

Open
theolivenbaum wants to merge 1 commit intomasterfrom
tesserae-playground-host-10862351439595950420
Open

Add Tesserae.Playground.Host with H5 Compiler Service#56
theolivenbaum wants to merge 1 commit intomasterfrom
tesserae-playground-host-10862351439595950420

Conversation

@theolivenbaum
Copy link
Contributor

This PR introduces the Tesserae.Playground.Host project, which serves as a backend for the Tesserae Playground. It leverages the H5.Compiler.Service to compile user-submitted C# code into JavaScript and HTML compatible with the H5 runtime.

Key features implemented:

  • CompilerService: Handles the orchestration of creating a temporary project, configuring the H5.Translator, downloading necessary NuGet packages (h5, h5.core, h5.Target), and invoking the compilation process.
  • Custom SDK Resolution: Implements a strategy to layout SDKs (including h5.Target and system .NET SDKs) in a temporary directory and configures MSBuildSDKsPath to enable the H5.Compiler.Service to resolve build targets correctly.
  • API Endpoint: Provides a POST /compile endpoint that accepts C# source and returns the generated JavaScript and index.html.

This submission represents the current progress on the Host implementation, specifically addressing the complex dependency and SDK resolution requirements of hosting the H5 compiler. The Tesserae.Playground.FrontEnd project is planned for the next phase.


PR created automatically by Jules for task 10862351439595950420 started by @theolivenbaum

- Create Tesserae.Playground.Host ASP.NET Core project - Implement CompilerService to compile C# code to H5 using H5.Compiler.Service - Add PackageDownloader to fetch h5, h5.core, and h5.Target dependencies at runtime - Configure custom MSBuild SDK resolution to support h5.Target and .NET SDKs in the hosted environment - Expose /compile endpoint for receiving source code and returning JS/HTML output - (Partial implementation: FrontEnd pending review of Host SDK resolution strategy) Co-authored-by: theolivenbaum <8791811+theolivenbaum@users.noreply.github.com>
@google-labs-jules
Copy link
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant