Add MJ image node, GIF save, and Kling/image generator updates

Ship o1key MJ图片生成 with content/style refs and prompt flags, save-GIF with preview, Kling 4.0 helpers, plus GPT/unified image node polish and docs.
This commit is contained in:
Jony
2026-11-09 09:11:12 +08:00
parent ff1cf830fa
commit a181cc1768
40 changed files with 6711 additions and 675 deletions
@@ -0,0 +1,40 @@
# 0016: Add Kling 4.0 modes to the released K video node
- Status: Accepted
- Date: 2026-10-30
- Owners: Maintainers
## Context
Kling 4.0 introduces separate text, keyframe, and Omni reference request
paths. The package already ships `K3Video`, and replacing it with a new node or
moving its widgets would invalidate saved workflows.
## Decision
Keep the `K3Video` node ID and append a `v4` DynamicCombo option. The v4 option
owns a `生成模式` selector with `文生视频`, `关键帧`, and `全能参考`. New keyframe
and reference sockets are appended after the released input block. Request body
validation lives in `clients/kling_video_client.py`; the node continues to use
the shared upload, polling, cancellation, and download lifecycle.
## Consequences
Existing v3, v2.6, and v3-omni workflows retain their positional widget
values. Kling 4.0 supports 3–30 seconds, 720p/1080p, up to ten keyframes, ten
reference images, and five reference videos through the new branch. Audio
voice-profile inputs and named elements remain outside this first integration
because the released node has no compatible AUDIO or element-ID sockets.
## Alternatives considered
- A new `Kling4Video` node would avoid a larger schema, but would split the K
video user experience and require a second registration and migration path.
- Reusing the v3 Omni payload without a mode selector would make text-only and
keyframe requests ambiguous and could send mutually exclusive media fields.
## Validation
`tests/test_kling_video.py` covers all three payload shapes, capability limits,
mutual exclusions, endpoint selection, and the Kling 4.0 result envelope.
@@ -0,0 +1,19 @@
# 0017: Remove retired Nano Banana models from the unified image generator
- Status: Accepted
- Date: 2026-11-08
## Context
The unified `O1keyImageGenerator` exposed `Nano Banana 2 Lite` and `Nano Banana` even though the current supported panel set is `Nano Banana 2.1`, `Nano Banana 2`, and `Nano Banana Pro`. Removing those values from the schema without a workflow migration lets ComfyUI replace an old combo value with the first option while configuring a graph after restart.
## Decision
The unified catalog and panel expose only the three supported Nano Banana models. Saved unified workflows containing either retired value are migrated before widget restoration to `Nano Banana 2`; the old Lite `512` resolution is migrated to `1K`, which is the closest valid resolution in the replacement model. Standalone `NanoBanana` and `BatchNanoBananaPro` keep their released model values and route mappings.
The panel normalizes retired values as a defensive fallback for graphs received without the frontend migration. The model label and selected value share one bordered control so the panel matches ComfyUI's native combo-widget presentation.
## Validation
- `tests/test_o1key_image_generator.py` verifies the unified schema model list.
- `tests/test_o1key_image_generator_frontend.mjs` verifies retired-model normalization, idempotent workflow migration, and the unified model list.
+2
View File
@@ -27,3 +27,5 @@ Use ADRs for decisions that constrain future changes: node ID compatibility, pac
- [0013: Remove batch Nano Banana random image selection](0013-remove-batch-nano-random-image-selection.md)
- [0014: Publish the current code as a new release baseline](0014-new-release-code-baseline.md)
- [0015: Canonical image-generator workflow values](0015-image-generator-workflow-values.md)
- [0016: Add Kling 4.0 modes to the released K video node](0016-kling-v4-generation-modes.md)
- [0017: Remove retired Nano Banana models from the unified image generator](0017-remove-retired-unified-nano-models.md)