Files
juddisjudd-ComfyUI-BawkNodes/js/bawk_nodes.js
T
JuddandClaude Fable 5 bee518dc72 refactor: v3.0.0 - FLUX.1/FLUX.2 focus, GGUF, LoRA sets, remove dead code
- Loader: FLUX.2 (single encoder, CLIPType.FLUX2) + GGUF via ComfyUI-GGUF
- Sampler: latent layout from model, FLUX.2 schedule, reference images
  (Kontext/klein edit), cfg for klein base, fix guidance conditioning key
- New BawkLoraStack (chainable, toggleable sets); encoder accepts lora_stack
- Saver: ComfyUI-loadable PNG metadata, optional model/prompt inputs
- Image loader: fix broken folder_paths import, simplify
- Remove modules/, utils/, ControlNet placeholder, Z-Image loader,
  unused AI enhancement code; trim deps and startup prints

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-20 23:34:47 -07:00

33 lines
1.1 KiB
JavaScript

import { app } from "../../scripts/app.js";
const NODE_COLORS = {
DiffusionModelLoader: ["#1a2332", "#4a90e2"],
BawkLoraStack: ["#32301a", "#f39c12"],
FluxWildcardEncode: ["#2a1a32", "#9b59b6"],
BawkSampler: ["#32261a", "#e67e22"],
FluxImageSaver: ["#1a3226", "#27ae60"],
BawkImageLoader: ["#1a3226", "#2ecc71"],
BawkBatchProcessor: ["#1a2a32", "#16a085"],
};
app.registerExtension({
name: "bawk.nodes",
beforeRegisterNodeDef(nodeType, nodeData) {
const colors = NODE_COLORS[nodeData.name];
if (!colors) return;
const onNodeCreated = nodeType.prototype.onNodeCreated;
nodeType.prototype.onNodeCreated = function () {
const result = onNodeCreated?.apply(this, arguments);
[this.bgcolor, this.color] = colors;
for (const widget of this.widgets ?? []) {
if (widget.name === "prompt" && widget.inputEl) {
widget.inputEl.style.minHeight = "120px";
widget.inputEl.placeholder = "Prompt... use {option1|option2} for wildcards";
}
}
return result;
};
},
});