Commit Graph

12 Commits

Author SHA1 Message Date
0244521f5c feat(selective-smart-touch): Add intelligent analysis-driven enhancement system + validation spec
## SelectiveSmartTouch (NEW)
- Architecture révolutionnaire: Analyse intelligente → Améliorations ciblées précises
- 5 modules: SmartAnalysisLayer, SmartTechnicalLayer, SmartStyleLayer, SmartReadabilityLayer, SmartTouchCore
- Système 10% segments: amélioration uniquement des segments les plus faibles (intensity-based)
- Détection contexte globale pour prompts adaptatifs multi-secteurs
- Intégration complète dans PipelineExecutor et PipelineDefinition

## Pipeline Validator Spec (NEW)
- Spécification complète système validation qualité par LLM
- 5 critères universels: Qualité, Verbosité, SEO, Répétitions, Naturalité
- Échantillonnage intelligent par filtrage balises (pas XML)
- Évaluation multi-versions avec justifications détaillées
- Coût estimé: ~$1/validation (260 appels LLM)

## Optimizations
- Réduction intensités fullEnhancement (technical 1.0→0.7, style 0.8→0.5)
- Ajout gardes-fous anti-familiarité excessive dans StyleLayer
- Sauvegarde étapes intermédiaires activée par défaut (pipeline-runner)

## Fixes
- Fix typo critique SmartTouchCore.js:110 (determineLayers ToApply → determineLayersToApply)
- Prompts généralisés multi-secteurs (e-commerce, SaaS, services, informatif)

🚀 Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-13 15:01:02 +08:00
64fb319e65 refactor: Synchronisation complète du codebase - Application de tous les patches
Application systématique et méthodique de tous les patches historiques.

##  FICHIERS SYNCHRONISÉS (19 fichiers)

### Core & Infrastructure:
- server.js (14 patches) - Lazy loading ModeManager, SIGINT hard kill, timing logs
- ModeManager.js (4 patches) - Instrumentation complète avec timing détaillé

### Pipeline System:
- PipelineDefinition.js (6 patches) - Source unique getLLMProvidersList()
- pipeline-builder.js (8 patches) - Standardisation LLM providers
- pipeline-runner.js (6 patches) - Affichage résultats structurés + debug console
- pipeline-builder.html (2 patches) - Fallback providers synchronisés
- pipeline-runner.html (3 patches) - UI améliorée résultats

### Enhancement Layers:
- TechnicalLayer.js (1 patch) - defaultLLM: 'gpt-4o-mini'
- StyleLayer.js (1 patch) - Type safety vocabulairePref
- PatternBreakingCore.js (1 patch) - Mapping modifications
- PatternBreakingLayers.js (1 patch) - LLM standardisé

### Validators & Tests:
- QualityMetrics.js (1 patch) - callLLM('gpt-4o-mini')
- PersonalityValidator.js (1 patch) - Provider gpt-4o-mini
- AntiDetectionValidator.js - Synchronisé

### Documentation:
- TODO.md (1 patch) - Section LiteLLM pour tracking coûts
- CLAUDE.md - Documentation à jour

### Tools:
- tools/analyze-skipped-exports.js (nouveau)
- tools/apply-claude-exports.js (nouveau)
- tools/apply-claude-exports-fuzzy.js (nouveau)

## 🎯 Changements principaux:
-  Standardisation LLM providers (openai → gpt-4o-mini, claude → claude-sonnet-4-5)
-  Lazy loading optimisé (ModeManager chargé à la demande)
-  SIGINT immediate exit (pas de graceful shutdown)
-  Type safety renforcé (conversions string explicites)
-  Instrumentation timing complète
-  Debug logging amélioré (console.log résultats pipeline)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-12 20:36:17 +08:00
957df21e18 fix(selective): Use specific keywords (resolvedContent) instead of general keyword
🐛 Problème identifié:
- Le système utilisait toujours csvData.mc0 (mot-clé général) pour tous les éléments
- Exemple: "plaque numero de maison" au lieu de "Plaque en PVC : économique et léger"

 Solution:
- Ajout paramètre specificKeyword à createTypedPrompt()
- Extraction de item.originalElement.resolvedContent avant génération
- Pas de fallback sur csvData.mc0 (log d'erreur si manquant)
- Détection des variables non résolues "[Mc+1_5 non résolu]"

📍 Fichier modifié:
- lib/selective-enhancement/SelectiveUtils.js:603-615 (createTypedPrompt)
- lib/selective-enhancement/SelectiveUtils.js:1083-1091 (extraction + appel)

🎯 Impact:
- Chaque élément utilise maintenant son mot-clé spécifique
- Prompts LLM plus précis et contextualisés
- Meilleure qualité de contenu généré

🤖 Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-12 14:03:06 +08:00
db966a4ad6 feat(selective): Add detailed logging and comprehensive guide
- Add detailed logs in SelectiveCore.js:
  * LLM selection reasoning (auto vs specified)
  * Branch-specific logs (technical/transitions/style)
  * Config details before each layer
  * Modification counts after each layer

- Add detailed logs in SelectiveLayers.js:
  * Stack configuration details on startup
  * Per-layer execution logs with before/after samples
  * Modification rate percentages
  * Final summary table with all layers

- Add SELECTIVE_ENHANCEMENT_GUIDE.md:
  * Complete architecture explanation (3 levels)
  * All 5 available stacks documented
  * Usage examples (code, API, web)
  * Detailed log output examples
  * FAQ section

This improves observability and helps understand how stack configurations
translate to actual layer executions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-12 11:37:15 +08:00
602d06ba21 feat: Améliore système de génération avec personnalités enrichies et détection intelligente
Ajouts majeurs:
- Détection intelligente des contraintes de longueur dans les instructions (évite conflits entre instruction et type)
- Contexte de personnalité enrichi: colonnes B, D, E, F, H, I, J du Google Sheet
- Randomisation des éléments de personnalité (max 2 par catégorie pour variabilité)
- Injection du titre associé dans le prompt des textes/intros pour cohérence
- Exclusion de personnalité pour questions FAQ (seulement réponses)

Corrections:
- Fix détection type: vérification préfixes (Intro_, Titre_, Txt_) avant suffixes (_title, _text)
- Fix parsing vocabulairePref pour gérer arrays et strings
- Logs détaillés sur détection de contraintes

Impact:
- Meilleure cohérence titre→texte
- Plus de variabilité anti-détection
- Respect strict des contraintes de longueur spécifiées
- Personnalités mieux contextualisées dans les prompts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-12 10:36:59 +08:00
471058f731 Add flexible pipeline system with per-module LLM configuration
- New modular pipeline architecture allowing custom workflow combinations
- Per-step LLM provider configuration (Claude, OpenAI, Gemini, Deepseek, Moonshot, Mistral)
- Visual pipeline builder and runner interfaces with drag-and-drop
- 10 predefined pipeline templates (minimal-test to originality-bypass)
- Pipeline CRUD operations via ConfigManager and REST API
- Fix variable resolution in instructions (HTML tags were breaking {{variables}})
- Fix hardcoded LLM providers in AdversarialCore
- Add TESTS_LLM_PROVIDER.md documentation with validation results
- Update dashboard to disable legacy config editor

API Endpoints:
- POST /api/pipeline/save, execute, validate, estimate
- GET /api/pipeline/list, modules, templates

Backward compatible with legacy modular workflow system.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-09 14:01:52 +08:00
f51c4095f6 Add modular pipeline demo system with real module integration
- Add complete modular demo interface (public/modular-pipeline-demo.html)
- Add standalone demo server (simple-server.js) on port 3333
- Integrate real SelectiveCore, AdversarialCore, HumanSimulation, PatternBreaking modules
- Add configurable pipeline with step-by-step content transformation display
- Add new trend management and workflow configuration modules
- Add comprehensive test suite for full pipeline validation
- Update core modules for better modular integration and demo compatibility

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-23 16:03:20 +08:00
4f60de68d6 Fix BatchProcessor initialization and add comprehensive test suite
- Fix BatchProcessor constructor to avoid server blocking during startup
- Add comprehensive integration tests for all modular combinations
- Enhance CLAUDE.md documentation with new test commands
- Update SelectiveLayers configuration for better LLM allocation
- Add AutoReporter system for test automation
- Include production workflow validation tests

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-19 14:17:49 +08:00
5f9ff4941d Complete API system implementation with comprehensive testing
- APIController.js: Full RESTful API with articles, projects, templates endpoints
- Real HTTP integration tests with live server validation
- Unit tests with proper mocking and error handling
- API documentation with examples and usage patterns
- Enhanced audit tool supporting HTML, npm scripts, dynamic imports
- Cleaned 28 dead files identified by enhanced audit analysis
- Google Sheets integration fully validated in test environment
2025-09-16 11:10:46 +08:00
9dbb6be5dc Improve step by step system, fix modular level 3 and 4 modules 2025-09-11 15:31:53 +08:00
bfb6e5c7f3 Setup test system extended 2025-09-05 20:09:53 +08:00
590f6a93a8 Module system code base 2025-09-04 21:24:45 +08:00