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.js CHANGED
@@ -11068,6 +11068,10 @@ var RetroDiffusionProvider = class _RetroDiffusionProvider {
11068
11068
  if (!Number.isInteger(count) || count < 1 || count > 16) {
11069
11069
  throw new Error("Retro Diffusion numImages must be a whole number from 1 to 16");
11070
11070
  }
11071
+ const family = /^rd_(lite|core)__/.exec(promptStyle)?.[1];
11072
+ if (family && count > 4) {
11073
+ throw new Error(`Retro Diffusion RD ${family === "lite" ? "Lite" : "Core"} styles return at most 4 images; set numImages to 1\u20134`);
11074
+ }
11071
11075
  if (spec.width < 16 || spec.height < 16 || spec.width > 512 || spec.height > 512) {
11072
11076
  throw new Error("Retro Diffusion output dimensions must be between 16 and 512 pixels");
11073
11077
  }
@@ -11079,9 +11083,11 @@ var RetroDiffusionProvider = class _RetroDiffusionProvider {
11079
11083
  validateAnimation(promptStyle, spec, styleImages, options);
11080
11084
  } else if (spec.generator === "tiles") {
11081
11085
  validateTile(promptStyle, spec, styleImages, count, options);
11082
- } else if (styleImages.length && !/^(?:rd_pro__|user__)/.test(promptStyle)) {
11086
+ } else if (family === "lite" && styleImages.length > 1) {
11087
+ throw new Error("Retro Diffusion RD Lite styles accept 1 reference image; use RD Core or RD Pro for more");
11088
+ } else if (styleImages.length && !/^(?:rd_pro__|rd_core__|rd_lite__|user__)/.test(promptStyle)) {
11083
11089
  throw new Error(
11084
- `Retro Diffusion style "${promptStyle}" does not accept reference_images; use an RD Pro or user style`
11090
+ `Retro Diffusion style "${promptStyle}" does not accept reference_images; use an RD Pro, RD Core, RD Lite or user style`
11085
11091
  );
11086
11092
  }
11087
11093
  }