Files
Dustin aadc1c02f7 v0.1.0-alpha: DazzleSwitch — dropdown-based smart switch node
Initial release of DazzleSwitch, a smart routing node for ComfyUI.
Replaces noodle-moving workflows with dropdown-based input selection.

- 5 optional AnyType inputs (input_01 through input_05)
- Dynamic dropdown widget populated by JS from connected input names
- INT select_override for programmatic cascading (0=dropdown, 1-5=direct)
- Dual outputs: selected value (AnyType) + selected_index (INT)
- Dual-loading detection guard (standalone + DazzleNodes safe)
- DazzleNodes-compatible JS with import.meta.url depth detection
- Git hooks, CI/CD workflows, ComfyUI Registry config

Templated from ComfyUI-PreviewBridgeExtended project structure.

Design: 2026-02-22__19-18-12__dazzleswitch-new-node-design.md
2026-02-22 21:02:08 -05:00

38 lines
987 B
Bash

#!/bin/bash
#
# BASIC pre-commit hook for Folder DateTime Fix (VERSION ONLY)
#
# ⚠️ WARNING: This hook provides NO SECURITY PROTECTION!
#
# Features:
# - Updates __version__ string in folder_datetime_fix/version.py
# - Format: VERSION_BRANCH_BUILD-YYYYMMDD-COMMITHASH
#
# Missing:
# - NO branch protection
# - NO private file detection
# - NO file size limits
# - NO debug statement checks
#
# For production use, install the standard pre-commit hook instead
#
set -e
# Find the repository root (where .git is located)
REPO_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
# Path to update script
UPDATE_SCRIPT="$REPO_ROOT/scripts/update-version.sh"
# Call the centralized version update script in auto mode
if [ -f "$UPDATE_SCRIPT" ]; then
"$UPDATE_SCRIPT" --auto
else
echo "[Version Hook] Warning: update-version.sh not found"
echo "[Version Hook] Version will not be updated"
# Don't fail the commit - just warn
fi
# Success - allow commit
exit 0