Emil
|
68cba874d5
|
Add tests (64 passing) + fix bg removal algorithm
- test_feedback.py: 46 tests for FeedbackDB (add, rate, search, stats, export, delete)
- test_server.py: 18 tests for post-processing (pixelate, bg removal, prompt building)
- Fix _pixelate: handle pixel_size=0 without division by zero
- Fix _remove_background: remove global magenta normalization that ate interior highlights
Now uses single-pass flood-fill from edges, preserving interior bright pixels
- Add pytest to .gitignore
|
2026-06-28 16:34:47 +03:00 |
|
Emil
|
e1ae41fc22
|
Add feedback system: SQLite DB, rating tools, reference search
- feedback.py: SQLite-backed FeedbackDB (add, rate, search, export)
- server.py: auto-save to DB on generate, 4 new MCP tools:
- rate_sprite: rate 1-5 stars with feedback
- get_reference_sprites: find high-rated similar sprites
- list_sprites: list all/unrated/top
- db_stats: database statistics
- Updated README with feedback tool docs
|
2026-06-28 15:38:47 +03:00 |
|