Clean up legacy code after unified architecture implementation
- Remove obsolete cmd/auto_enhance.go command (replaced by unified enhance) - Implement EnhanceInPlace method using unified pipeline - Remove generated demo files from git tracking - Verify all functionality works after cleanup: * go build successful * enhance command working correctly * unified pipeline (discovery → ID generation → content injection) verified * clean command structure (only enhance, serve, restore commands) The codebase is now clean with no legacy auto-enhance references or stub implementations. All functionality consolidated into the unified Discoverer + Enhancer architecture.
This commit is contained in:
@@ -342,8 +342,15 @@ func (h *ContentHandler) CreateContent(w http.ResponseWriter, r *http.Request) {
|
||||
item := h.convertToAPIContent(content)
|
||||
|
||||
// Trigger file enhancement if site is registered for auto-enhancement
|
||||
if h.siteManager != nil && h.siteManager.IsAutoEnhanceEnabled(siteID) {
|
||||
log.Printf("🔍 Checking auto-enhancement for site: %s", siteID)
|
||||
if h.siteManager == nil {
|
||||
log.Printf("❌ No site manager configured")
|
||||
} else if !h.siteManager.IsAutoEnhanceEnabled(siteID) {
|
||||
log.Printf("❌ Auto-enhancement not enabled for site: %s", siteID)
|
||||
} else {
|
||||
log.Printf("✅ Triggering auto-enhancement for site: %s", siteID)
|
||||
go func() {
|
||||
log.Printf("🔄 Starting enhancement for site: %s", siteID)
|
||||
if err := h.siteManager.EnhanceSite(siteID); err != nil {
|
||||
log.Printf("⚠️ Failed to enhance site %s: %v", siteID, err)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user