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.cjs
CHANGED
|
@@ -17788,7 +17788,12 @@ var RecipeSchema = import_zod5.z.object({
|
|
|
17788
17788
|
sourceImage: RecipeBindingSchema.optional(),
|
|
17789
17789
|
maskImage: RecipeBindingSchema.optional(),
|
|
17790
17790
|
strength: RecipeBindingSchema.optional()
|
|
17791
|
-
}).
|
|
17791
|
+
}).catchall(RecipeBindingSchema),
|
|
17792
|
+
/** Frame-set options; required when the style's generator is `frames`. */
|
|
17793
|
+
frames: import_zod5.z.object({
|
|
17794
|
+
vary: import_zod5.z.string().min(1),
|
|
17795
|
+
seedStep: import_zod5.z.number().int().optional()
|
|
17796
|
+
}).strict().optional()
|
|
17792
17797
|
}).strict().optional(),
|
|
17793
17798
|
quality: import_zod5.z.object({
|
|
17794
17799
|
stage: import_zod5.z.enum(["composition-source", "production-candidate"]),
|
|
@@ -17882,11 +17887,27 @@ var RecipeSchema = import_zod5.z.object({
|
|
|
17882
17887
|
});
|
|
17883
17888
|
return;
|
|
17884
17889
|
}
|
|
17890
|
+
const frames = recipe.workflow.frames;
|
|
17891
|
+
if (recipe.style.generator === "frames" !== (frames !== void 0)) {
|
|
17892
|
+
context.addIssue({
|
|
17893
|
+
code: import_zod5.z.ZodIssueCode.custom,
|
|
17894
|
+
path: ["workflow", "frames"],
|
|
17895
|
+
message: "is required for a frames style and only allowed there"
|
|
17896
|
+
});
|
|
17897
|
+
}
|
|
17898
|
+
if (frames && !Object.hasOwn(recipe.workflow.bindings, frames.vary)) {
|
|
17899
|
+
context.addIssue({
|
|
17900
|
+
code: import_zod5.z.ZodIssueCode.custom,
|
|
17901
|
+
path: ["workflow", "frames", "vary"],
|
|
17902
|
+
message: "must name a workflow binding"
|
|
17903
|
+
});
|
|
17904
|
+
}
|
|
17885
17905
|
const expected = {
|
|
17886
17906
|
workflowFile: `${RECIPE_DIR_TOKEN}/${recipe.workflow.path}`,
|
|
17887
17907
|
outputNodeId: recipe.workflow.outputNodeId,
|
|
17888
17908
|
numImages: recipe.workflow.numImages,
|
|
17889
|
-
bindings: recipe.workflow.bindings
|
|
17909
|
+
bindings: recipe.workflow.bindings,
|
|
17910
|
+
frames
|
|
17890
17911
|
};
|
|
17891
17912
|
if (JSON.stringify(canonical3(options)) !== JSON.stringify(canonical3(expected))) {
|
|
17892
17913
|
context.addIssue({
|