Add AI generation to the wizard and embed Playground - #14
Merged
Conversation
Let the wizard build a whole app on top of the scaffold with an LLM, in the browser: Anthropic, OpenAI, or a local OpenAI-compatible server (Ollama, LM Studio). The model edits an in-memory file map through list/read/write/ edit/delete tools; follow-up prompts refine the same plugin. Run in Playground now boots Playground in an iframe on the page and installs the plugin zip as a literal resource, so large generated apps are not limited by what fits in a blueprint URL. The AI Assistant option is dropped: an embedded Playground cannot fetch from GitHub.
2 tasks
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.
Summary
list_files/read_file/write_file/edit_file/delete_filetools over an in-memory file map, with streaming output and a file viewer; follow-up prompts refine the same plugin. The wp-app README is pulled into the system prompt.literalresource (same approach as Plugin Sumission: Provide a button to let the user plugin check before submitting WordPress/wordpress.org#718), so a generated app is not limited by the blueprint URL length. Download and Playground both use the AI-edited files.pages.ymlunchanged apart from nothing new to bundle;wp-app.zipis now used by both download and Playground.Test plan