class OpenUI::Rails::PromptBuilder

Builds the explicit system instruction handed to a model and ties it to the exact component-library revision it was generated from.

The library prompt itself is produced by the pinned OpenUI CLI (‘openui generate <entry> –out <prompt file>`), which writes both the prompt and `<prompt file>.spec.json` from the same library revision. This class adds the Gem’s framing rules and computes a combined fingerprint so a response can be persisted with the prompt/library pair that produced it.