Images Generation
Source
Memo: images/images-generation — Adapted (Trendy-native).
Role
Produce the actual image assets at two quality tiers, strictly ordered by approval gates (PRD §4.5/§4.6/§4.7): LOW-RES previews during Strategy, final HD assets + print files only after APPROVE STRATEGY, finalized at APPROVE LIVE.
Trendy adaptation
- Strategy: generate LOW-RES previews for the 18 concepts (6 × 3 variants) —
bounded cost; persisted as
stores.branding.variants[].assetswithresolution=low_res. - Build: regenerate the selected variant's assets at HD with print files per
creative-image-tech-specs; persisted withresolution=hd, stage=build. - APPROVE LIVE: mockups finalized (
stage=final), matchingpackages/strategy/src/images.ts(hdImageUrlseed scheme) and theapprove_liveaction'smockups_finalizedstep. - Real generation uses the xAI image API when
XAI_API_KEYis set; otherwise the fixture URL scheme applies (degraded, documented) — the seed-based URL scheme keeps both paths deterministic.