Compare commits

...
1 Commits
Author SHA1 Message Date
ketle-manandClaude Sonnet 5.5 ffcc68568c release: v0.8.5 - read Gemini / Nano Banana node images (prompt, model, seed) in Metadata tab and I tab
- metadata-tab.js / node_sets_menu.js: Gemini(Image|NanoBanana)* nodes' prompt input, model name
  and seed are extracted (API format)
- README, DEVLOG, bump version to 0.8.5

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 14:46:32 +09:00
7 changed files with 45 additions and 8 deletions
+1
View File
@@ -2,6 +2,7 @@
Condensed version-by-version index of DEVLOG.md (each line: version + one-line summary of what changed and why). Full rationale, code details, and "How to apply" lessons live in the excluded DEVLOG.md itself; this index exists so graphify can extract a queryable semantic node per release without feeding the full log to the local Ollama model. Regenerate with `python tools/generate_doc_index.py devlog` whenever DEVLOG.md changes.
- **v0.8.5(2026-10-14)** — Metadata / I タブ: Gemini 系ノード(Nano Banana)の画像を読めるように
- **v0.8.4(2026-10-14)** — ComfyUI v0.40.0 対応: ネイティブ LoRA スタックノード(`LoadLoraModel` / `LoadLoraTextEncoder`)
- **v0.8.3(2026-10-13)** — GenerateUI: シードモード「Workflow」を追加(改善候補メモ 2-A)
- **v0.8.2(2026-10-12)** — Gallery: セマンティック検索(Gemini Embedding 2 / EmbeddingGemma 2)
+18
View File
@@ -2,6 +2,24 @@
---
## v0.8.5(2026-10-14)
### Metadata / I タブ: Gemini 系ノード(Nano Banana)の画像を読めるように
Comic Creator v1.54.0 で、Nano Banana を ComfyUI ネイティブノード(`GeminiNanoBanana2V2`)経由で生成できるようにした(併用)。この経路の画像は SaveImage により `prompt` / `workflow` が PNG に埋め込まれるため、Workflow Studio 側で通常の ComfyUI 画像として読めるようにした。
- `metadata-tab.js` / `web/comfyui/node_sets_menu.js`: 自ノードの `prompt` 入力を持つ `Gemini(Image|NanoBanana)*` ノードを、動画ノード(`*ImageToVideo` / `*TextToVideo`)と同じ扱いでプロンプト候補(`texts`)へ追加。`NEGATIVE_PROMPT:` を含む送信全文がそのまま1件として出る(Positive / Negative の分割はしない)。
- `extractDiffusionModels`(API形式): Gemini 系ノードの `model` 入力(例: `Gemini Nano Banana 2.1`)をモデル名として表示。
- `extractSamplerSettings`: Gemini 系ノードの `seed` を補助ノードとして拾い、設定欄に表示。
- 対象は API 形式のみ(DynamicCombo のため UI 形式の `widgets_values` の並びは未確認)。`GenerateUI` のプロンプト編集・実行は対象外。
- `cc_nanobanana` フォルダ用の特別扱い(`history.jsonl` 参照・Promptタブ非表示)は、従来の Gemini API 直叩きの画像のため変更なし。ネイティブ経路の出力先は別フォルダ(`cc_nanobanana_native`)なので、この特別扱いに該当せず、埋め込みメタデータが使われる。
**実機確認(ComfyUI_5 / ポート8189、v0.40.0)**
- Comic Creator のネイティブ経路で実際に生成した画像(`cc_nanobanana_native/NB_00001_.png`、848×1264)を `extractAllMetadata` に通し、モデル名(`Gemini Nano Banana 2.1`)・シード・プロンプト(`NEGATIVE_PROMPT:` 付き全文)が取れることを確認。Gallery の一覧・画像メタ取得でも通常の画像として扱われる(`nanobanana` エントリは null)。
**ネイティブ API ノードの認証について(今回の調査で判明)**
- API ノードは `/prompt` の `extra_data` に `auth_token_comfy_org`(ブラウザのログイン)または `api_key_comfy_org`(Comfy APIキー)が必要。ComfyUI 本体の画面は自動で付けるが、Workflow Studio の `queuePrompt`(`fetch('/prompt')` 直叩き)は付けないため、GenerateUI からパートナーAPIノードを実行すると認証エラーになる。今回は対応せず(Comic Creator はサーバー側で `COMFY_API_KEY` を渡す方式で対応)。必要になれば Workflow Studio 側にも同様のサーバー側プロキシが必要。
## v0.8.4(2026-10-14)
### ComfyUI v0.40.0 対応: ネイティブ LoRA スタックノード(`LoadLoraModel` / `LoadLoraTextEncoder`)
+2 -2
View File
@@ -27,7 +27,7 @@ A comprehensive workflow, asset management, and generation UI plugin for [ComfyU
- Built-in AI tools (translation and more)
![Workflow Studio](https://img.shields.io/badge/ComfyUI-Custom_Node-blue)
![Version](https://img.shields.io/badge/version-0.8.4-green)
![Version](https://img.shields.io/badge/version-0.8.5-green)
## Features (tab -> feature names)
@@ -53,7 +53,7 @@ Setting / Results / Plan JSON sub-panels, Per-column keyframes, Model column —
2-column layout, Collapsible sections, Theme selection, Theme customization, Workflows directory, Gallery output directory, Eagle connection, CivitAI Host, CivitAI API Key, Default workflow, Default Checkpoint, VRAM Management (Ollama), Video Playback Volume, Data Management, Text Size, RAW JSON Colors, GenerateUI Model Tab Highlight, Wildcard Integration, G'MIC-Qt Integration, Language
### Gallery Tab (v0.3.44)
Output / ImagePrompt / Style_Catalog / Metadata sub-tabs, Image browser, Folder tree root label, Thumbnail / Table views, Folder management, File operations, Download, MP4 video support, MP4 embedded metadata, WebM support, Embedded metadata reading fixes, Audio support, File conversion, Move To folder filter, Semantic Search, Audio waveform colors, Info tab: dimensions & duration, Multi-select, Image Compare, Prompt search, Server-side filtering, Group management, Thumbnail F button, Favorites, Detail panel, Prompt tab, Nanobanana tab, Workflow viewer, GenUI button, Image Edit button, Send GenUI Image button, Send to LI node button, Send to LV node button, Send CC button, Search clear (✕), Clear all filters (✕ Clear), Workflow auto-save, Output folder configurable, SVG file support, PSD file support, Performance
Output / ImagePrompt / Style_Catalog / Metadata sub-tabs, Image browser, Folder tree root label, Thumbnail / Table views, Folder management, File operations, Download, MP4 video support, MP4 embedded metadata, WebM support, Embedded metadata reading fixes, Audio support, File conversion, Move To folder filter, Semantic Search, Audio waveform colors, Info tab: dimensions & duration, Multi-select, Image Compare, Prompt search, Server-side filtering, Group management, Thumbnail F button, Favorites, Detail panel, Prompt tab, Nanobanana tab, Gemini / Nano Banana nodes, Workflow viewer, GenUI button, Image Edit button, Send GenUI Image button, Send to LI node button, Send to LV node button, Send CC button, Search clear (✕), Clear all filters (✕ Clear), Workflow auto-save, Output folder configurable, SVG file support, PSD file support, Performance
### ImagePrompt Gallery subtab (v0.3.94, renamed from Style/Prompt in v0.3.95)
Visual prompt library, 3-column layout, Prompt builder (right pane), Plain-text prompt storage, ponyxlWildcardsVault format support, Seed data importer
+2 -1
View File
@@ -23,7 +23,7 @@ A comprehensive workflow, asset management, and generation UI plugin for [ComfyU
- Built-in AI tools (translation and more)
![Workflow Studio](https://img.shields.io/badge/ComfyUI-Custom_Node-blue)
![Version](https://img.shields.io/badge/version-0.8.4-green)
![Version](https://img.shields.io/badge/version-0.8.5-green)
## Screenshots
@@ -287,6 +287,7 @@ An experimental batch generator: runs the workflow currently loaded in GenerateU
- **Detail panel** — view filename, path, tags, groups, and metadata in a slide-out panel; four or five tabs — **Info** / **JSON** / **Groups** / **Prompt** / **Nanobanana** (only for `cc_nanobanana`-folder images, see below)
- **Prompt tab** (v0.4.7) — selected by default (the most frequently checked piece of info shouldn't need an extra click); lists every positive/negative prompt candidate found in the embedded workflow with POS/NEG badges, reusing the exact same list→click→full-text UI as the Metadata tab; extracts from the API-format embedding when available rather than the UI-format one, since a workflow with independent top-level and subgraph sampling chains (e.g. Krea-2) can otherwise have some of its prompts missed; hidden entirely for images in the `cc_nanobanana` folder (see Nanobanana tab below), since they carry no embedded ComfyUI workflow to extract a prompt from
- **Nanobanana tab** (v0.7.14) — shown only for images in a `cc_nanobanana` folder (written by ComfyUI Comic Creator's Nanobanana tab) that have a matching entry in that folder's `history.jsonl` generation log; shows engine, model, image size, seed, timestamp, and the prompt/negative prompt actually used — the same info is also surfaced in the Metadata tab (see below) when opened from here via the **Metadata** button
- **Gemini / Nano Banana nodes** (v0.8.5) — images generated by ComfyUI's native Nano Banana nodes (`GeminiNanoBanana2V2` etc., e.g. via ComfyUI Comic Creator's "ComfyUI native node" engine) are readable like any other ComfyUI image: the Metadata tab and the side-panel I tab show the prompt (in the prompt list, including the appended `NEGATIVE_PROMPT:` text), the model name (under Diffusion Model, e.g. `Gemini Nano Banana 2.1`) and the seed; these images need no history file and are not special-cased like the `cc_nanobanana` folder (API-format workflows only)
- **Workflow viewer** — Metadata tab displays workflow JSON from PNG embedded data (`prompt` / `workflow` keys) or from workflow saved by the Generate UI tab; **Copy & Send Canvas** button copies the JSON to the clipboard and sends the workflow directly to the ComfyUI canvas (UI and API formats both supported)
- **GenUI button** (renamed from "Load GenUI" in v0.5.0 for readability) — loads the embedded ComfyUI workflow from the selected image directly into the GenerateUI tab; shows a warning toast if no workflow is embedded or the format is unsupported; Metadata button is styled green, GenUI button uses the primary accent color
- **Image Edit button** — toolbar button; sends the selected image directly to the Image Edit tab as the base layer; PSD files (v0.6.0) are fully decomposed into their original layers instead of being flattened into one image
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "comfyui-workflow-studio"
description = "A comprehensive workflow, asset management, and generation UI plugin for ComfyUI. Manage workflows, models, images, and prompts; batch generation and Image Feeder in the GenerateUI tab; library side panel with canvas drag & drop and AI tools."
version = "0.8.4"
version = "0.8.5"
license = { file = "LICENSE" }
requires-python = ">= 3.10"
dependencies = ["jinja2"]
+13 -2
View File
@@ -201,7 +201,12 @@ function extractDiffusionModels(wf) {
if (!wf || typeof wf !== "object") return [];
const UNET_TYPES = new Set(["UNETLoader", "UnetLoaderGGUF", "UNETLoaderGGUF"]);
if (Array.isArray(wf.nodes)) return collectUnique(collectAllNodes(wf).filter(n => UNET_TYPES.has(n.type)).map(n => n.widgets_values?.[0]));
return collectUnique(Object.values(wf).filter(n => UNET_TYPES.has(n?.class_type)).map(n => n.inputs?.unet_name));
// Gemini系の画像生成ノード(Nano Banana等、API形式)は"model"入力がモデル名(例: "Gemini Nano Banana 2.1")
const isGeminiImage = (ct) => /^Gemini(Image|NanoBanana)/.test(ct ?? "");
return collectUnique([
...Object.values(wf).filter(n => UNET_TYPES.has(n?.class_type)).map(n => n.inputs?.unet_name),
...Object.values(wf).filter(n => isGeminiImage(n?.class_type)).map(n => typeof n.inputs?.model === "string" ? n.inputs.model : undefined),
]);
}
function extractTextEncoders(wf) {
if (!wf || typeof wf !== "object") return [];
@@ -300,6 +305,11 @@ function extractSamplerSettings(apiWf) {
// 補助ノードから不足分を補う。
const AUX = {
RandomNoise: ["noise_seed"],
// Gemini系の画像生成ノード(Nano Banana等)はseedのみ(GeminiへはseedではなくComfyUIのキャッシュキーとして働く)
GeminiImageNode: ["seed"],
GeminiImage2Node: ["seed"],
GeminiNanoBanana2: ["seed"],
GeminiNanoBanana2V2: ["seed"],
BasicScheduler: ["steps", "scheduler", "denoise"],
KSamplerSelect: ["sampler_name"],
CFGGuider: ["cfg"],
@@ -613,7 +623,8 @@ function extractPromptsAPI(wf) {
// MiniMaxH3ImageToVideo等の動画生成オールインワンノード。CLIPTextEncode等を経由せず
// 自ノードの"prompt"入力に直接テキストを持つ(positive/negativeの区別も無い)ため、
// isTextEncoderNode判定を通さずtextMapへ直接投入する(fallbackのtextsに載る)。
if (typeof n.inputs?.prompt === "string" && /ImageToVideo|TextToVideo/i.test(ct)) {
// Gemini系の画像生成ノード(Nano Banana等)も同様に自ノードの"prompt"入力を持つ。
if (typeof n.inputs?.prompt === "string" && /ImageToVideo|TextToVideo|^Gemini(Image|NanoBanana)/i.test(ct)) {
textMap.set(id, n.inputs.prompt);
continue;
}
+8 -2
View File
@@ -3214,7 +3214,12 @@ function _extractDiffusionModels(wf) {
if (!wf || typeof wf !== "object") return [];
const _UNET_TYPES = new Set(["UNETLoader", "UnetLoaderGGUF", "UNETLoaderGGUF"]);
if (Array.isArray(wf.nodes)) return _collectUnique(_collectAllNodes(wf).filter(n => _UNET_TYPES.has(n.type)).map(n => n.widgets_values?.[0]));
return _collectUnique(Object.values(wf).filter(n => _UNET_TYPES.has(n?.class_type)).map(n => n.inputs?.unet_name));
// Gemini系の画像生成ノード(Nano Banana等、API形式)は"model"入力がモデル名(例: "Gemini Nano Banana 2.1")
const _isGeminiImage = (ct) => /^Gemini(Image|NanoBanana)/.test(ct ?? "");
return _collectUnique([
...Object.values(wf).filter(n => _UNET_TYPES.has(n?.class_type)).map(n => n.inputs?.unet_name),
...Object.values(wf).filter(n => _isGeminiImage(n?.class_type)).map(n => typeof n.inputs?.model === "string" ? n.inputs.model : undefined),
]);
}
function _extractTextEncoders(wf) {
if (!wf || typeof wf !== "object") return [];
@@ -3537,7 +3542,8 @@ function _extractPromptsAPI(wf) {
// MiniMaxH3ImageToVideo等の動画生成オールインワンノード。CLIPTextEncode等を経由せず
// 自ノードの"prompt"入力に直接テキストを持つ(positive/negativeの区別も無い)ため、
// _isTextEncoderNode判定を通さずtextMapへ直接投入する(fallbackのtextsに載る)。
if (typeof n.inputs?.prompt === "string" && /ImageToVideo|TextToVideo/i.test(ct)) {
// Gemini系の画像生成ノード(Nano Banana等)も同様に自ノードの"prompt"入力を持つ。
if (typeof n.inputs?.prompt === "string" && /ImageToVideo|TextToVideo|^Gemini(Image|NanoBanana)/i.test(ct)) {
textMap.set(id, n.inputs.prompt);
continue;
}