pixelkiln 0.138.2 → 0.139.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -11566,6 +11566,10 @@ var RetroDiffusionProvider = class _RetroDiffusionProvider {
11566
11566
  if (!Number.isInteger(count) || count < 1 || count > 16) {
11567
11567
  throw new Error("Retro Diffusion numImages must be a whole number from 1 to 16");
11568
11568
  }
11569
+ const family = /^rd_(lite|core)__/.exec(promptStyle)?.[1];
11570
+ if (family && count > 4) {
11571
+ throw new Error(`Retro Diffusion RD ${family === "lite" ? "Lite" : "Core"} styles return at most 4 images; set numImages to 1\u20134`);
11572
+ }
11569
11573
  if (spec.width < 16 || spec.height < 16 || spec.width > 512 || spec.height > 512) {
11570
11574
  throw new Error("Retro Diffusion output dimensions must be between 16 and 512 pixels");
11571
11575
  }
@@ -11577,9 +11581,11 @@ var RetroDiffusionProvider = class _RetroDiffusionProvider {
11577
11581
  validateAnimation(promptStyle, spec, styleImages, options);
11578
11582
  } else if (spec.generator === "tiles") {
11579
11583
  validateTile(promptStyle, spec, styleImages, count, options);
11580
- } else if (styleImages.length && !/^(?:rd_pro__|user__)/.test(promptStyle)) {
11584
+ } else if (family === "lite" && styleImages.length > 1) {
11585
+ throw new Error("Retro Diffusion RD Lite styles accept 1 reference image; use RD Core or RD Pro for more");
11586
+ } else if (styleImages.length && !/^(?:rd_pro__|rd_core__|rd_lite__|user__)/.test(promptStyle)) {
11581
11587
  throw new Error(
11582
- `Retro Diffusion style "${promptStyle}" does not accept reference_images; use an RD Pro or user style`
11588
+ `Retro Diffusion style "${promptStyle}" does not accept reference_images; use an RD Pro, RD Core, RD Lite or user style`
11583
11589
  );
11584
11590
  }
11585
11591
  }