Files
kgilper-krea-reference/tests
Kevin Gilper f546801d3d Add user-defined custom recipes to the V10 guide card
Schema-validated YAML/JSON files become first-class "Use image for"
choices, loaded from custom_recipes/ in the pack and from
<ComfyUI user dir>/krea_reference/recipes/ (survives pack updates).
INPUT_TYPES re-scans per call, so node-definition refresh picks up new
files without a restart.

Validation (kg_krea_v10/custom_recipes.py) is strict about keys - an
unknown key rejects the recipe so typos cannot become silent no-ops -
and forgiving about omissions: only label and role are required, with
every other field defaulting from the role's tuning tables. Reserved
labels cover both the purpose labels and the internal recipe keys, so
custom labels cannot shadow built-ins in either direction. Invalid
files are skipped with logged reasons and the node always loads; a
saved workflow whose recipe file was removed falls back to balanced
with a once-per-label warning instead of silently reading manual rows.

Custom recipes compose with direction, timing, and the guard clamp;
packets carry custom_recipe and custom_recipe_source. Ships with
custom_recipes/README.md plus a disabled template, a full teaching
section in both V10 user guides, node-doc and technical-companion
coverage, and nine new contract tests (51 total).
2026-07-02 21:11:31 -04:00
..