Files
MaxomaraiandClaude Opus 4.7 f86905b5bd Initial release — Maxomarai Pack v0.1.0
Bundles two ComfyUI tools from Maxomarai:

* The Last Model Switcher — one-click model switching with auto-
  configured CLIP/VAE/resolution/sampler across SDXL, SD 1.5, Flux 1,
  Flux 2, SD 3.5, Chroma and more. AI-assisted Identify/Enhance with
  preview→Apply/Discard confirm flow. Four providers: Anthropic, OpenAI,
  Ollama, custom OpenAI-compatible endpoints.

* Wayfinder — frontend-only visual aid: type-colored drag links,
  connected-node drag highlight, breathing glow on palette-colored
  nodes. Purely UX polish, no workflow changes.

Shipped as a single pack (aggregating __init__.py, one web/ dir) so a
single clone or Manager-install activates both tools. Settings landed
under Maxomarai in ComfyUI Settings.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 12:24:29 +02:00

53 lines
2.0 KiB
Python

"""
Maxomarai Pack for ComfyUI
--------------------------
A suite of ComfyUI tools by Maxomarai, designed to work together.
Included tools
--------------
• **The Last Model Switcher** — one-click model switching with auto-configured
CLIP, VAE, resolution, prompts, seed, and sampler settings. AI-powered model
identification and prompt enhancement (Anthropic/OpenAI/Ollama/custom).
• **Wayfinder** — frontend-only visual aid for the node graph. Type-colored
drag links, connected-node highlighting during drag, breathing glow on
palette-colored nodes. Pure UX polish — no nodes, no workflow changes.
How the pack is assembled
-------------------------
This single __init__.py is the pack's entry point. It:
1. Imports The Last Model Switcher's comfy_entrypoint from nodes/, which
registers the V3 ComfyNode class and its HTTP API routes.
2. Declares WEB_DIRECTORY = "./web", so both frontend JS files in web/js/
are served by ComfyUI as extensions:
- web/js/the_last_model_switcher.js (TLMS node UI + toolbars)
- web/js/wayfinder.js (visual graph navigation extension)
Wayfinder has no Python backend — it self-registers as an
app.registerExtension() call in its JS, so merely shipping the file
under web/ is enough.
Install
-------
cd ComfyUI/custom_nodes
git clone https://github.com/maxomarai/maxomarai-pack.git
# then restart ComfyUI
Or via ComfyUI Manager: search for "maxomarai-pack".
"""
from __future__ import annotations
# Importing the submodule executes its @server.PromptServer.instance.routes
# decorators, registering the TLMS HTTP API endpoints (ai_identify, enhance,
# scan, reload, etc.). The imported comfy_entrypoint is the V3 extension
# factory that ComfyUI calls to discover the node class.
from .nodes.the_last_model_switcher import comfy_entrypoint # noqa: F401
# Relative to THIS file — ComfyUI serves the contents as /extensions/maxomarai-pack/.
WEB_DIRECTORY = "./web"
__all__ = ["WEB_DIRECTORY", "comfy_entrypoint"]