pixelkiln 0.145.0 → 0.146.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
@@ -35274,7 +35274,12 @@ var RecipeSchema = z18.object({
35274
35274
  sourceImage: RecipeBindingSchema.optional(),
35275
35275
  maskImage: RecipeBindingSchema.optional(),
35276
35276
  strength: RecipeBindingSchema.optional()
35277
- }).strict()
35277
+ }).catchall(RecipeBindingSchema),
35278
+ /** Frame-set options; required when the style's generator is `frames`. */
35279
+ frames: z18.object({
35280
+ vary: z18.string().min(1),
35281
+ seedStep: z18.number().int().optional()
35282
+ }).strict().optional()
35278
35283
  }).strict().optional(),
35279
35284
  quality: z18.object({
35280
35285
  stage: z18.enum(["composition-source", "production-candidate"]),
@@ -35368,11 +35373,27 @@ var RecipeSchema = z18.object({
35368
35373
  });
35369
35374
  return;
35370
35375
  }
35376
+ const frames = recipe.workflow.frames;
35377
+ if (recipe.style.generator === "frames" !== (frames !== void 0)) {
35378
+ context.addIssue({
35379
+ code: z18.ZodIssueCode.custom,
35380
+ path: ["workflow", "frames"],
35381
+ message: "is required for a frames style and only allowed there"
35382
+ });
35383
+ }
35384
+ if (frames && !Object.hasOwn(recipe.workflow.bindings, frames.vary)) {
35385
+ context.addIssue({
35386
+ code: z18.ZodIssueCode.custom,
35387
+ path: ["workflow", "frames", "vary"],
35388
+ message: "must name a workflow binding"
35389
+ });
35390
+ }
35371
35391
  const expected = {
35372
35392
  workflowFile: `${RECIPE_DIR_TOKEN}/${recipe.workflow.path}`,
35373
35393
  outputNodeId: recipe.workflow.outputNodeId,
35374
35394
  numImages: recipe.workflow.numImages,
35375
- bindings: recipe.workflow.bindings
35395
+ bindings: recipe.workflow.bindings,
35396
+ frames
35376
35397
  };
35377
35398
  if (JSON.stringify(canonical3(options)) !== JSON.stringify(canonical3(expected))) {
35378
35399
  context.addIssue({