diff --git a/.env.example b/.env.example index bfab55f..86d5567 100644 --- a/.env.example +++ b/.env.example @@ -55,3 +55,11 @@ DATA_PATH=/srv/data/folio # Logs Apache (onglet Recherches dans /admin) # Nom du fichier de log d'accès du vhost dans /var/log/apache2/ APACHE_ACCESS_LOG=lan.acegrp.varlog-access.log + +# IA — analyse critique et réécriture d'articles dans l'éditeur +# Provider : anthropic (API) ou claude_code (CLI local) +# AI_PROVIDER=anthropic +# Clé API Anthropic (obtenir sur https://console.anthropic.com/) +ANTHROPIC_API_KEY= +# Modèle à utiliser (défaut : claude-haiku-4-5-20251001) — ignoré si provider=claude_code +# AI_MODEL=claude-haiku-4-5-20251001 diff --git a/CHANGELOG.md b/CHANGELOG.md index 1deec09..94df034 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,26 @@ Format : [Keep a Changelog](https://keepachangelog.com/fr/1.0.0/) — versionnag --- +## [1.6.25] - 2026-05-16 + +### Ajouté +- Admin : onglet « IA » — statut provider/clé, sélecteur `anthropic`/`claude_code`, champ modèle, procédure d'installation CLI, sauvegarde dans `site_settings.json` (#97) +- `AiService` : support du provider Claude Code CLI via `proc_open` + lecture provider/modèle depuis `SiteSettings` (#97) + +### Corrigé +- Sécurité CSP : extraction du ` + diff --git a/templates/layout.php b/templates/layout.php index b50cc95..191a6a7 100644 --- a/templates/layout.php +++ b/templates/layout.php @@ -166,6 +166,9 @@ $_layoutCurrentCat = trim($_GET['cat'] ?? ''); + + + diff --git a/templates/post_confirm.php b/templates/post_confirm.php index f9cf619..e621f08 100644 --- a/templates/post_confirm.php +++ b/templates/post_confirm.php @@ -115,8 +115,7 @@ $slugOriginal = $postSlug; + pattern="[a-z0-9][a-z0-9\-]*">
Slug recalculé depuis le nouveau titre. Slug initial : diff --git a/templates/post_form.php b/templates/post_form.php index 1e9fb12..c25c7e1 100644 --- a/templates/post_form.php +++ b/templates/post_form.php @@ -9,6 +9,7 @@ $dateValue = isset($published_at) ?> +
+
+

IA

+
+ + +
+ +
+ +
+ diff --git a/templates/wizard/step6.php b/templates/wizard/step6.php index 10bb9d0..1af624c 100644 --- a/templates/wizard/step6.php +++ b/templates/wizard/step6.php @@ -26,7 +26,9 @@ $_formAction = '/edit/' . rawurlencode($uuid) . '/6';
← Retour