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 +23 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +23 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +221 -33
- package/dist/index.d.ts +221 -33
- package/dist/index.js +23 -2
- package/dist/index.js.map +1 -1
- package/docs/COMFYUI.md +2 -0
- package/docs/RECIPES.md +17 -0
- package/package.json +1 -1
- package/recipes/comfyui/pixel-art-pose-frames/1.0.0/pixelkiln.recipe.json +142 -0
- package/recipes/comfyui/pixel-art-pose-frames/1.0.0/workflow-api.json +142 -0
- package/schema/recipe.schema.json +33 -0
- package/skills/pixelkiln/references/comfyui.md +5 -0
package/dist/index.js
CHANGED
|
@@ -17281,7 +17281,12 @@ var RecipeSchema = z5.object({
|
|
|
17281
17281
|
sourceImage: RecipeBindingSchema.optional(),
|
|
17282
17282
|
maskImage: RecipeBindingSchema.optional(),
|
|
17283
17283
|
strength: RecipeBindingSchema.optional()
|
|
17284
|
-
}).
|
|
17284
|
+
}).catchall(RecipeBindingSchema),
|
|
17285
|
+
/** Frame-set options; required when the style's generator is `frames`. */
|
|
17286
|
+
frames: z5.object({
|
|
17287
|
+
vary: z5.string().min(1),
|
|
17288
|
+
seedStep: z5.number().int().optional()
|
|
17289
|
+
}).strict().optional()
|
|
17285
17290
|
}).strict().optional(),
|
|
17286
17291
|
quality: z5.object({
|
|
17287
17292
|
stage: z5.enum(["composition-source", "production-candidate"]),
|
|
@@ -17375,11 +17380,27 @@ var RecipeSchema = z5.object({
|
|
|
17375
17380
|
});
|
|
17376
17381
|
return;
|
|
17377
17382
|
}
|
|
17383
|
+
const frames = recipe.workflow.frames;
|
|
17384
|
+
if (recipe.style.generator === "frames" !== (frames !== void 0)) {
|
|
17385
|
+
context.addIssue({
|
|
17386
|
+
code: z5.ZodIssueCode.custom,
|
|
17387
|
+
path: ["workflow", "frames"],
|
|
17388
|
+
message: "is required for a frames style and only allowed there"
|
|
17389
|
+
});
|
|
17390
|
+
}
|
|
17391
|
+
if (frames && !Object.hasOwn(recipe.workflow.bindings, frames.vary)) {
|
|
17392
|
+
context.addIssue({
|
|
17393
|
+
code: z5.ZodIssueCode.custom,
|
|
17394
|
+
path: ["workflow", "frames", "vary"],
|
|
17395
|
+
message: "must name a workflow binding"
|
|
17396
|
+
});
|
|
17397
|
+
}
|
|
17378
17398
|
const expected = {
|
|
17379
17399
|
workflowFile: `${RECIPE_DIR_TOKEN}/${recipe.workflow.path}`,
|
|
17380
17400
|
outputNodeId: recipe.workflow.outputNodeId,
|
|
17381
17401
|
numImages: recipe.workflow.numImages,
|
|
17382
|
-
bindings: recipe.workflow.bindings
|
|
17402
|
+
bindings: recipe.workflow.bindings,
|
|
17403
|
+
frames
|
|
17383
17404
|
};
|
|
17384
17405
|
if (JSON.stringify(canonical3(options)) !== JSON.stringify(canonical3(expected))) {
|
|
17385
17406
|
context.addIssue({
|