Summary
Create a purpose-built example at examples/assistant/app.xml that demonstrates the full generate-preview-iterate loop: a chat panel with Nemo-specific system prompt, a code editor showing the generated config, and a launch preview button.
Context
This example becomes the recommended entry point for new Nemo developers. It combines:
- A
<chat> panel with a Nemo-specific system prompt that includes the full component schema
- A
<code-editor> pane displaying the current generated config
- A "Launch Preview" button that writes the code editor content to a temp file and runs the Nemo app
- A simplified component reference panel (leveraging the storybook from the Component Storybook epic)
The application should feel like pair-programming with an AI that knows Nemo.
Acceptance Criteria
Relevant Files
examples/ — existing examples for reference
crates/nemo/src/components/code_editor.rs — code editor component
crates/nemo/src/runtime.rs — NemoRuntime for temp file loading
Stack Base
Summary
Create a purpose-built example at
examples/assistant/app.xmlthat demonstrates the full generate-preview-iterate loop: a chat panel with Nemo-specific system prompt, a code editor showing the generated config, and a launch preview button.Context
This example becomes the recommended entry point for new Nemo developers. It combines:
<chat>panel with a Nemo-specific system prompt that includes the full component schema<code-editor>pane displaying the current generated configThe application should feel like pair-programming with an AI that knows Nemo.
Acceptance Criteria
examples/assistant/with:app.xml— main configscripts/handlers.rhai— event handlers for launch, edit, navigationREADME.md— setup and usage instructionslanguage="xml")$TMPDIR/nemo-preview/on-responseevent from<chat>to update the code editorRelevant Files
examples/— existing examples for referencecrates/nemo/src/components/code_editor.rs— code editor componentcrates/nemo/src/runtime.rs— NemoRuntime for temp file loadingStack Base
main<chat>component type for multi-turn LLM conversations #58 (chat component), Addnemo generateCLI subcommand for NL-to-config generation #57 (nemo generate subcommand) — needs both the chat UI and the generate pipeline