Skip to content

Add AI generation to the wizard and embed Playground - #14

Merged
akirk merged 1 commit into
mainfrom
wizard-ai-generation
Aug 22, 2026
Merged

Add AI generation to the wizard and embed Playground#14
akirk merged 1 commit into
mainfrom
wizard-ai-generation

Conversation

@akirk

@akirk akirk commented Aug 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • New Build with AI section in the GitHub Pages wizard: describe the app, pick Anthropic / OpenAI / Local (Ollama, LM Studio), enter an API key (stored in the browser only, requests go straight to the provider). The model edits the scaffold through list_files / read_file / write_file / edit_file / delete_file tools 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.
  • Run in Playground now embeds Playground in an iframe and installs the plugin zip as a literal resource (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.
  • The AI Assistant checkbox is removed: an embedded Playground fetches resources from our origin and cannot reach GitHub.
  • pages.yml unchanged apart from nothing new to bundle; wp-app.zip is now used by both download and Playground.

Test plan

  • Headless Chromium with a mocked Anthropic SSE stream: tool calls (incl. an error result), streamed text, file list, settings persistence per provider, then a real embedded Playground boot that lands on the app URL with the generated file installed, no console errors.
  • Real Anthropic / OpenAI / local model run (no key available here).

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.
@akirk
akirk merged commit 796f56a into main Aug 22, 2026
@akirk
akirk deleted the wizard-ai-generation branch August 22, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant