pixelkiln 0.138.1 → 0.139.0
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/cli.js +8 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +8 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/docs/RESEARCH_PARALLAX.md +1 -2
- package/docs/RETRO_DIFFUSION.md +62 -8
- package/package.json +1 -1
- package/skills/pixelkiln/SKILL.md +5 -0
- package/skills/pixelkiln/references/pixellab-roadmap.md +2 -2
- package/skills/pixelkiln/references/pixellab.md +6 -5
package/dist/cli.js
CHANGED
|
@@ -15300,6 +15300,10 @@ var RetroDiffusionProvider = class _RetroDiffusionProvider {
|
|
|
15300
15300
|
if (!Number.isInteger(count) || count < 1 || count > 16) {
|
|
15301
15301
|
throw new Error("Retro Diffusion numImages must be a whole number from 1 to 16");
|
|
15302
15302
|
}
|
|
15303
|
+
const family = /^rd_(lite|core)__/.exec(promptStyle)?.[1];
|
|
15304
|
+
if (family && count > 4) {
|
|
15305
|
+
throw new Error(`Retro Diffusion RD ${family === "lite" ? "Lite" : "Core"} styles return at most 4 images; set numImages to 1\u20134`);
|
|
15306
|
+
}
|
|
15303
15307
|
if (spec.width < 16 || spec.height < 16 || spec.width > 512 || spec.height > 512) {
|
|
15304
15308
|
throw new Error("Retro Diffusion output dimensions must be between 16 and 512 pixels");
|
|
15305
15309
|
}
|
|
@@ -15311,9 +15315,11 @@ var RetroDiffusionProvider = class _RetroDiffusionProvider {
|
|
|
15311
15315
|
validateAnimation(promptStyle, spec, styleImages, options);
|
|
15312
15316
|
} else if (spec.generator === "tiles") {
|
|
15313
15317
|
validateTile(promptStyle, spec, styleImages, count, options);
|
|
15314
|
-
} else if (styleImages.length
|
|
15318
|
+
} else if (family === "lite" && styleImages.length > 1) {
|
|
15319
|
+
throw new Error("Retro Diffusion RD Lite styles accept 1 reference image; use RD Core or RD Pro for more");
|
|
15320
|
+
} else if (styleImages.length && !/^(?:rd_pro__|rd_core__|rd_lite__|user__)/.test(promptStyle)) {
|
|
15315
15321
|
throw new Error(
|
|
15316
|
-
`Retro Diffusion style "${promptStyle}" does not accept reference_images; use an RD Pro or user style`
|
|
15322
|
+
`Retro Diffusion style "${promptStyle}" does not accept reference_images; use an RD Pro, RD Core, RD Lite or user style`
|
|
15317
15323
|
);
|
|
15318
15324
|
}
|
|
15319
15325
|
}
|