feat: estilo editorial de la IA configurable (editorial-style.php)

La IA del plugin 'AI' redacta segun el estilo del pack: editorial-style.php
(tono, normas, prohibidos, max chars de titulares) se copia a wp-content y un
mu-plugin lo inyecta en las instrucciones de sistema via wpai_system_instruction
(scp: wpai_title_generation_system_instruction para el cap de caracteres).
Editas el fichero, re-ejecutas deploy y la IA cambia de estilo.
This commit is contained in:
hermes committed 2026-09-13 00:12:23 +02:00
1 parent b3c2098d10
commit f86717b542
4 files changed
+85

No files matched your search

+14
View File
@@ -303,6 +303,20 @@ if ($WpReady) {
} else {
Warn 'No se pudo auto-configurar. Re-ejecuta .\deploy.ps1 tras el asistente de WordPress.'
}
# Estilo editorial: copiar al wp-content (editable: editorial-style.php del pack)
# e instalar el mu-plugin que lo inyecta en las instrucciones de la IA.
$StyleRc = 1
cmd /c "docker exec d0a1-wp mkdir -p /var/www/html/wp-content/mu-plugins >NUL 2>&1"
if ($LASTEXITCODE -eq 0) {
docker cp (Join-Path $ScriptDir 'editorial-style.php') d0a1-wp:/var/www/html/wp-content/editorial-style.php 2>$null
if ($LASTEXITCODE -eq 0) {
docker cp (Join-Path $ScriptDir 'mu-plugin-d0a1-editorial.php') d0a1-wp:/var/www/html/wp-content/mu-plugins/d0a1-editorial.php 2>$null
$StyleRc = $LASTEXITCODE
}
}
if ($StyleRc -eq 0) {
Ok 'Estilo editorial activo (edita editorial-style.php y re-ejecuta para cambiarlo)'
}
} else {
Warn 'WordPress aun no esta instalado. Tras el asistente del navegador,'
Warn 'vuelve a ejecutar .\deploy.ps1 y los plugins de IA se configuran solos.'