feat: servidor mcp institucional y asistente interactivo guiado con spotlight didactico (SDD-011, v3.8.27)

This commit is contained in:
2026-10-27 08:23:04 -03:00
parent a5b014efbe
commit bf5b7c3ae7
20 changed files with 1339 additions and 12 deletions
+13
View File
@@ -201,6 +201,19 @@
const data = await res.json();
if (res.ok && data.response) {
appendMessage('assistant', data.response, data.quick_options || [], true);
// Si UdeCi emite una directiva de guía interactiva, activar el Spotlight
if (data.guide_step && window.WalkthroughEngine) {
const panel = document.getElementById('aiChatPanel');
const launcher = document.getElementById('aiChatLauncher');
if (panel && launcher) {
panel.classList.add('d-none');
launcher.style.transform = '';
}
setTimeout(() => {
window.WalkthroughEngine.startStep(data.guide_step);
}, 250);
}
} else {
const errorMsg = data.detail || data.message || 'UdeCi no pudo procesar la respuesta en este momento.';
appendMessage('assistant', `⚠️ ${errorMsg}`, [], false);