import { Lamina } from "@lamina/sdk";
const lamina = new Lamina({ apiKey: process.env.LAMINA_KEY });
const job = await lamina.apps.productShoot({
brief: "linen tee on weathered teak, north light, 35mm",
brand: "homestead",
variants: 6,
ratios: ["1:1", "4:5", "16:9"],
});
for await (const evt of lamina.jobs.stream(job.id)) {
console.log(evt.phase, evt.progress);
}
const scored = await lamina.evaluate(job.id, { rubric: "brand" });
const keepers = scored.assets.filter(a => a.score >= 0.8);
await lamina.distribute(keepers, {
targets: [
{ kind: "s3", bucket: "hs-creative", prefix: "ss26/hero/" },
{ kind: "shopify", collection: "ss26-launch" },
{ kind: "sanity", dataset: "production" },
],
});