3 Commits
Author SHA1 Message Date
Dustin 41938a06c1 Add requirements.txt and improve Python environment error handling
Changes:
- Add scripts/requirements.txt with pyyaml dependency
- Update README.md with installation instructions
- Add helpful error message when PyYAML is missing
- Error message shows which Python is running and how to fix

Now when dev_mode.py is run with wrong Python, users see:
- Current Python executable path
- Exact pip install command for that Python
- Suggestion to use 'python dev_mode.py' explicitly
2025-11-02 01:43:34 -05:00
Dustin c5151fccf5 Refactor dev_mode.py to use .gitmodules as source of truth
Changes:
- Remove hardcoded NODE_MAPPINGS dictionary
- Add parse_gitmodules() function to auto-discover nodes
- Update all commands (status, dev, publish) to use parsed mappings
- Update config YAML to note that nodes are auto-discovered
- Add nodes_bak/ to .gitignore
- Update fit-mask-to-image submodule to latest (renamed) commit

Benefits:
- No code changes needed when adding new nodes
- Single source of truth (.gitmodules)
- Automatically discovers all nodes/ submodules
- Less maintenance burden as collection grows
2025-11-02 01:32:22 -05:00
Dustin de3b7a36f3 Add dev mode toggle script and fix node loading
Changes:
- Fix __init__.py to use importlib for hyphenated node directories
- Add scripts/dev_mode.py for toggling between dev (symlinks) and publish (submodules) modes
- Add scripts/README.md with documentation
- Add scripts/dev_mode_config.yaml for configuration

The dev_mode.py script allows rapid development by symlinking to source repos,
then restoring git submodules for clean version control when ready to commit.
2025-11-02 01:25:23 -05:00