pixelkiln 0.82.0 → 0.83.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 CHANGED
@@ -13945,10 +13945,10 @@ var NewAssetSchema = z6.object({
13945
13945
  styles: z6.array(z6.string().min(1)).optional(),
13946
13946
  /**
13947
13947
  * A controlled regeneration of another asset in the same manifest,
13948
- * instead of a fresh generation. `inpaint` needs a mask upload the
13949
- * gallery does not offer yet, so only `image-to-image` and
13950
- * `animate-skeleton` (whose keypoints file the gallery writes first) can
13951
- * be created here; hand-edit the manifest for the other modes.
13948
+ * instead of a fresh generation. `inpaint` needs a mask upload and
13949
+ * `interpolate` an ending-keyframe image the gallery does not offer, so
13950
+ * those two are hand-edited; every other mode can be created here
13951
+ * (`animate-skeleton` after the gallery writes its keypoints file).
13952
13952
  */
13953
13953
  revision: z6.discriminatedUnion("mode", [
13954
13954
  z6.object({
@@ -13957,6 +13957,29 @@ var NewAssetSchema = z6.object({
13957
13957
  from: z6.string().min(1),
13958
13958
  strength: z6.number().min(0).max(1).optional()
13959
13959
  }).strict(),
13960
+ z6.object({
13961
+ mode: z6.literal("reduce-colors"),
13962
+ from: z6.string().min(1),
13963
+ /** A target colour count; the gallery leaves PixelLab's default when this is omitted. */
13964
+ numColors: z6.number().int().min(2).max(256).optional(),
13965
+ dithering: RevisionDitheringSchema.optional(),
13966
+ ditheringStrength: z6.number().min(0).max(10).optional()
13967
+ }).strict(),
13968
+ z6.object({ mode: z6.literal("correct-pixelart"), from: z6.string().min(1), strength: z6.number().min(0).max(1).optional() }).strict(),
13969
+ z6.object({
13970
+ mode: z6.enum(["animate", "animate-pixminimax"]),
13971
+ from: z6.string().min(1),
13972
+ frames: z6.number().int().min(4).max(40).refine((n) => n % 2 === 0, "frames must be even").optional(),
13973
+ fps: z6.number().int().min(1).max(60).optional(),
13974
+ enhancePrompt: z6.boolean().optional(),
13975
+ /** `animate-pixminimax` only; the loader refuses it on `animate`. */
13976
+ direction: CharacterDirectionSchema.optional()
13977
+ }).strict(),
13978
+ z6.object({
13979
+ mode: z6.literal("edit-animation"),
13980
+ from: z6.string().min(1),
13981
+ fps: z6.number().int().min(1).max(60).optional()
13982
+ }).strict(),
13960
13983
  z6.object({
13961
13984
  mode: z6.literal("animate-skeleton"),
13962
13985
  from: z6.string().min(1),