- Remove unused imports from nodes (time, torch, requests, itertools) - Move uuid import to top-level in bot/bot.py - Add 4 new test files with 86 tests for shared utilities - Update CHANGELOG.md with version 2.0.0 refactoring summary - Update REFACTOR_PRD.md to mark Phase 5 complete Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2.3 KiB
2.3 KiB
Changelog
All notable changes to this project will be documented in this file.
[2.0.0] - 2026-01-20
Major Refactoring Release
Complete architectural refactoring to improve code organization, reduce duplication, and add bot features.
Added
- Directory Structure: New
nodes/,shared/,bot/organization - BaseDiscordNode: Shared base class for image and video nodes (343 lines of reusable code)
- Shared Utilities: 17 modular utility files in
shared/packageshared/discord/- webhook client, message builder, CDN extractorshared/media/- video encoder, format utils, image processingshared/workflow/- sanitizer, prompt extractor, workflow builder
- Bot Features:
- WebSocket reconnection with exponential backoff
- Error delivery to Discord users
/templatecommands (save, load, list, delete)/historyand/reruncommands- Config templates:
config.yaml.example,.env.example
Changed
- Code Reduction: Total node code reduced by 620 lines (24%)
- Image node: 986 → 836 lines
- Video node: 1562 → 1092 lines
- Imports: All imports now use
shared/package instead ofdiscordsend_utils/ - Video Encoding: Extracted to
FFmpegEncoderandPILEncoderclasses
Fixed
- Bot startup bugs (BotConfig import, missing json import, permission imports)
- SDXL workflow prompt extraction support
- CDN URL redundant sends on 204 responses
- Message builder metadata section formatting
Removed
discordsend_utils/directory (replaced byshared/)- Obsolete documentation files
[Unreleased]
Changed
- Performance: Optimized image processing in
DiscordSendSaveImagenode.- Replaced redundant PIL-to-Numpy conversions with optimized Torch operations (~70% faster tensor processing).
- Optimized JPEG encoding to use PIL directly, bypassing OpenCV conversion (~30% faster).
[1.1.0] - 2026-01-10
Added
- Image Node:
DiscordSendSaveImagefor saving and sending images with advanced formatting. - Video Node:
DiscordSendSaveVideofor converting image sequences to video (GIF, MP4, WebM, ProRes). - GitHub Integration: Automatically archive Discord CDN URLs to a GitHub repository.
- Testing: Added initial test suite.
- Logging: Implemented structured logging for better debugging.