makepad/libs/flow/recipes/templates/expanded-prompt-to-image.splash
Arena Agent d8d5ea8b6a Repair integration manifests and port nigig exports onto upstream widget families
Restore missing required asset/flow packages from the pinned nigig revision; retain upstream script isolation, X11 hover, and widget-core fixes. Validated makepad-widgets data feature with Rust 1.97.1.
2026-10-26 11:23:26 +00:00

17 lines
741 B
Text

use mod.flow.*
/** The image idea to expand and paint. */
let prompt = Input{ type: @text default: "a small brass robot on a workbench" }
let expand = Llm{
system: "Rewrite the prompt as one vivid image description. Preserve the subject and add concrete light, material, and composition details."
prompt: prompt.text()
}
let image = Image{ prompt: expand.text() width: 512 height: 512 }
/** Publish the generated picture into the flow asset library. */
let published = Publish{ value: image.image() namespace: "flows" tags: ["flow", "image", "expanded"] }
Flow{
label: "Expanded prompt to image"
brief: "Expands a short image idea and paints it at the creator's default canvas size."
prompt, expand, image, published
}