New Features: - SID_PromptCompose node with Standard and Enhance with AI modes - SID_PromptSynthesis node for VLM-based prompt generation - SID_ImageAnalysis node for comprehensive image analysis - Text LLM support (Qwen2.5 0.5B-7B) for prompt enhancement - PixAI tagger integration Documentation: - docs/image_tokenization_spec.md - Full technical specification for tokenization → classification → assembly pipeline - docs/implementation_plan.md - 8-phase implementation roadmap - docs/SID_PromptCompose.md - Node usage documentation Infrastructure: - core/compose/ module with base, pipeline, standard, llm generators - core/log.py centralized logging - Config files for Qwen2.5 text models (YAML) - Web assets for ComfyUI integration This commit establishes the foundation for rewriting the compose pipeline based on the tokenization specification. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
30 lines
775 B
JavaScript
30 lines
775 B
JavaScript
/**
|
|
* ImageToPrompt Node Styling
|
|
* Military Green theme: #4B5320
|
|
*/
|
|
|
|
import { app } from "/scripts/app.js";
|
|
|
|
const MILITARY_GREEN = "#4B5320";
|
|
const MILITARY_GREEN_DARK = "#3a4219";
|
|
|
|
app.registerExtension({
|
|
name: "AIPhotographyToolkit.ImageToPrompt",
|
|
|
|
async nodeCreated(node) {
|
|
if (node.comfyClass === "ImageToPrompt") {
|
|
// Set node colors
|
|
node.color = MILITARY_GREEN;
|
|
node.bgcolor = MILITARY_GREEN_DARK;
|
|
}
|
|
},
|
|
|
|
async beforeRegisterNodeDef(nodeType, nodeData, app) {
|
|
if (nodeData.name === "ImageToPrompt") {
|
|
// Set default colors for the node type
|
|
nodeType.prototype.color = MILITARY_GREEN;
|
|
nodeType.prototype.bgcolor = MILITARY_GREEN_DARK;
|
|
}
|
|
}
|
|
});
|