utopia-ia/elffuss-claw public
Changesets · Branches · Tags · Compare
| Changeset | e2d4c9abe7d2bbd74d09a67cd29ecf292ad991ad2dd94aba4b9108ade2d1df4a |
|---|---|
| Author | KikoCis <kikocisneros@gmail.com> · 2026-10-10 16:52 +02:00 |
| Committer | KikoCis <kikocisneros@gmail.com> · 2026-10-11 17:49 +02:00 |
| Parents | 78d0983a2116 |
4 files changed
added tests/ux-ajustes.mjs +80 −0
| @@ -0,0 +1,80 @@ | ||
| 1 | +// Ajustes: proveedores externos, feedback y «Acerca de». | |
| 2 | +// · «Servidor Elffuss (Ornith 9B)» ya no se ofrece (el servicio está parado y | |
| 3 | +// elegirlo fallaba siempre), aunque estuviera activado de antes. | |
| 4 | +// · La casilla de cada proveedor tiene nombre; al activarla el aviso lleva al | |
| 5 | +// selector de modelo (no al 🧠). | |
| 6 | +// · El feedback dice si llegó: si falla, lo dice y el texto se queda. | |
| 7 | +// · «Acerca de» enlaza el código, la comunidad, las incidencias y la licencia; | |
| 8 | +// el sello del build enlaza su commit solo si es un commit limpio. | |
| 9 | +// | |
| 10 | +// BASE=http://localhost:8743 node tests/ux-ajustes.mjs | |
| 11 | +import { navegador, contexto, pagina, ok, hasta, avisos, fin, BASE } from './ux-comun.mjs'; | |
| 12 | + | |
| 13 | +const b = await navegador(); | |
| 14 | +const { ctx } = await contexto(b, { | |
| 15 | + extraInit: { 'elffuss.providers': JSON.stringify({ server: { enabled: true, baseURL: 'https://claw.elffuss.com/v1', model: 'ornith-9b', apiKey: '' } }) }, | |
| 16 | +}); | |
| 17 | +const { p, errores } = await pagina(ctx); | |
| 18 | +const abrirAjustes = async () => { await p.click('#tabs button[data-tab="ajustes"]'); await p.locator('#panel-ajustes .ext-block').waitFor(); }; | |
| 19 | +await abrirAjustes(); | |
| 20 | +await p.click('#panel-ajustes .ext-block > summary'); | |
| 21 | +ok('el servidor Ornith 9B no se ofrece en Ajustes', !(await p.locator('#panel-ajustes').innerText()).includes('Ornith')); | |
| 22 | +ok('…ni en el selector aunque estuviera activado de antes', !(await p.evaluate(() => | |
| 23 | + [...document.querySelectorAll('#model-select option')].some(o => o.value === 'ext:server')))); | |
| 24 | + | |
| 25 | +const casilla = p.locator('#prov-ollama'); | |
| 26 | +ok('la casilla de cada proveedor tiene nombre', await casilla.getAttribute('aria-label') === 'Activar Ollama (local)' | |
| 27 | + && await p.locator('label[for="prov-ollama"]').count() === 1); | |
| 28 | +await casilla.check(); | |
| 29 | +const aviso = p.locator('#toasts .toast', { hasText: 'Ollama' }); | |
| 30 | +ok('activarlo dice «elígelo en el selector de modelo», no «🧠»', await hasta(async () => /selector de modelo/.test(await aviso.innerText().catch(() => ''))) | |
| 31 | + && !/🧠/.test(await aviso.innerText())); | |
| 32 | +ok('…y aparece en el selector', await p.evaluate(() => [...document.querySelectorAll('#model-select option')].some(o => o.value === 'ext:ollama'))); | |
| 33 | +await aviso.locator('.toast-accion').click(); | |
| 34 | +ok('su botón lleva al selector de modelo', await p.evaluate(() => document.activeElement?.id === 'model-select')); | |
| 35 | + | |
| 36 | +// ── feedback ──────────────────────────────────────────────────────────────── | |
| 37 | +let estado = 500, recibido = null; | |
| 38 | +await p.route('**/proxy/report', async route => { recibido = route.request().postDataJSON(); await route.fulfill({ status: estado, body: estado === 200 ? '{"ok":true}' : 'caído' }); }); | |
| 39 | +await abrirAjustes(); | |
| 40 | +await p.fill('#tel-feedback', 'el botón X no hace nada'); | |
| 41 | +await p.click('#panel-ajustes button:has-text("Enviar")'); | |
| 42 | +ok('si el envío falla, lo dice y el texto se queda', await hasta(async () => (await avisos(p)).some(t => /No ha llegado/.test(t))) | |
| 43 | + && (await p.inputValue('#tel-feedback')) === 'el botón X no hace nada' && !(await avisos(p)).some(t => /gracias/.test(t))); | |
| 44 | +ok('…y ofrece el sitio público de incidencias', await p.locator('#toasts .toast', { hasText: 'No ha llegado' }).locator('.toast-accion').innerText() === 'Abrir incidencias'); | |
| 45 | +estado = 200; | |
| 46 | +await p.click('#panel-ajustes button:has-text("Enviar")'); | |
| 47 | +ok('si llega, da las gracias y vacía el texto', await hasta(async () => (await avisos(p)).some(t => /gracias/.test(t))) | |
| 48 | + && (await p.inputValue('#tel-feedback')) === '' && recibido?.kind === 'feedback'); | |
| 49 | +ok('enviar feedback a mano no deja encendido el envío automático', !(await p.evaluate(async () => (await import('/js/telemetry.js')).isEnabled()))); | |
| 50 | + | |
| 51 | +// ── acerca de ─────────────────────────────────────────────────────────────── | |
| 52 | +const acerca = p.locator('#panel-ajustes [data-ruta="acerca"]'); | |
| 53 | +const hrefs = await acerca.locator('a').evaluateAll(as => as.map(a => [a.getAttribute('href'), a.getAttribute('rel')])); | |
| 54 | +ok('«Acerca de» enlaza el código, la comunidad y las incidencias (sin referrer)', | |
| 55 | + hrefs.some(([h]) => h === 'https://github.com/KikoCis/elffuss-claw') && hrefs.some(([h]) => h === 'https://git.elffuss.com/elffuss/claw') | |
| 56 | + && hrefs.some(([h]) => h === 'https://git.elffuss.com/elffuss/claw/issues') && hrefs.every(([, r]) => r === 'noopener noreferrer'), JSON.stringify(hrefs)); | |
| 57 | +ok('…dice la licencia y, en desarrollo, que no hay sello', /Apache-2\.0/.test(await acerca.innerText()) && /de desarrollo/.test(await acerca.innerText())); | |
| 58 | +const sellos = await p.evaluate(async () => { | |
| 59 | + const ui = await import('/js/ui.js'); | |
| 60 | + const limpio = ui.enlaceBuild('7b2385c'), sucio = ui.enlaceBuild('7b2385c-dirty'); | |
| 61 | + return { limpio: limpio.tagName + ' ' + limpio.getAttribute('href'), sucio: sucio.tagName + ' ' + (sucio.getAttribute('href') || '') }; | |
| 62 | +}); | |
| 63 | +ok('un sello limpio enlaza su commit en GitHub; uno «-dirty» no enlaza', sellos.limpio === 'A https://github.com/KikoCis/elffuss-claw/commit/7b2385c' && sellos.sucio === 'SPAN ', JSON.stringify(sellos)); | |
| 64 | +await p.goto(BASE + '/#/ajustes/acerca', { waitUntil: 'domcontentloaded' }); | |
| 65 | +await p.waitForFunction(() => !!window.elffuss?.agent); | |
| 66 | +ok('#/ajustes/acerca lleva a esa tarjeta', await hasta(() => p.evaluate(() => | |
| 67 | + document.querySelector('#panel-ajustes [data-ruta="acerca"]')?.classList.contains('resaltado')))); | |
| 68 | + | |
| 69 | +// ── el modo básico señala el selector de modelo, no el 🧠 ─────────────────── | |
| 70 | +await p.fill('#prompt', 'hola'); | |
| 71 | +await p.press('#prompt', 'Enter'); | |
| 72 | +const enlace = p.locator('#log .msg.assistant a[href="#/modelo"]').last(); | |
| 73 | +ok('la ayuda del modo básico enlaza al «selector de modelo»', await hasta(async () => await enlace.count() === 1) | |
| 74 | + && !/selector 🧠/.test(await p.locator('#log').innerText())); | |
| 75 | +await enlace.click(); | |
| 76 | +ok('…y el enlace lo enfoca (y la URL vuelve a decir dónde estás)', await hasta(() => p.evaluate(() => | |
| 77 | + document.activeElement?.id === 'model-select' && location.hash !== '#/modelo'))); | |
| 78 | + | |
| 79 | +ok('sin errores de página', errores.length === 0, errores.slice(0, 3).join(' | ')); | |
| 80 | +await fin(b, 'AJUSTES: sin Ornith roto, casillas con nombre, feedback honesto y «Acerca de» con enlaces'); |
modified web/css/elffuss.css +4 −0
| @@ -52,6 +52,8 @@ | ||
| 52 | 52 | .brand b, .beta { white-space: nowrap; flex: none; } |
| 53 | 53 | .claim { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; } |
| 54 | 54 | #build { flex: none; } |
| 55 | +#build a { color: inherit; text-decoration: none; } | |
| 56 | +#build a:hover { text-decoration: underline; } | |
| 55 | 57 | .controls { flex: none; } |
| 56 | 58 | .model-pick { display: inline-flex; align-items: center; gap: 6px; min-width: 0; } |
| 57 | 59 | .model-pick select { max-width: min(30vw, 380px); text-overflow: ellipsis; } |
| @@ -311,6 +313,8 @@ | ||
| 311 | 313 | /* Skills: enlaces a repos y SKILL.md, la lista de un repo dentro de su tarjeta y |
| 312 | 314 | el texto que se le da al modelo */ |
| 313 | 315 | .repo-link { color: var(--accent2); font-size: .74rem; text-decoration: none; white-space: nowrap; } |
| 316 | +.prov-name { font-weight: 700; flex: 1; cursor: pointer; } | |
| 317 | +.panel .card a { color: var(--accent2); } | |
| 314 | 318 | .repo-link:hover { text-decoration: underline; } |
| 315 | 319 | .repo-skills { display: flex; flex-direction: column; gap: 6px; } |
| 316 | 320 | .repo-skills[hidden] { display: none; } |
modified web/js/i18n.js +10 −2
| @@ -37,7 +37,7 @@ | ||
| 37 | 37 | settingsTitle: '⚙️ Modelos y configuración avanzada', |
| 38 | 38 | settingsDesc: 'Elffuss corre en tu navegador por defecto. Aquí puedes conectar modelos externos (opcional). Las claves se guardan solo en este navegador y las llamadas van directas al proveedor — nada pasa por nuestros servidores.', |
| 39 | 39 | modelPh: 'modelo', endpointPh: 'endpoint', lblModel: 'Modelo', lblEndpoint: 'Endpoint', lblApiKey: 'API key', |
| 40 | - keyNeeded: 'clave (no necesaria)', provOn: '{label} activado — elígelo en el selector 🧠', provOff: '{label} desactivado', | |
| 40 | + keyNeeded: 'clave (no necesaria)', provOn: '{label} activado: elígelo en el selector de modelo, arriba', provOff: '{label} desactivado', | |
| 41 | 41 | storeTitle: 'Modelo descargado (cacheado en tu navegador)', storeCalc: 'Calculando espacio…', |
| 42 | 42 | storeClear: 'Vaciar caché del modelo', storeClearing: 'Vaciando…', cacheCleared: 'Caché vaciada', |
| 43 | 43 | storeCached: '{gb} en caché · ', storeNone: 'Nada cacheado todavía · ', |
| @@ -162,6 +162,10 @@ | ||
| 162 | 162 | browse: 'Explorar', hideList: 'Ocultar', skillRemoved: 'Skill «{name}» quitada', skillRemoveL: 'Quitar la skill «{name}»', |
| 163 | 163 | skillSeeText: 'Ver lo que se le da al modelo', repoAdded: 'Repo {repo} añadido: pulsa «Explorar» para ver sus skills', |
| 164 | 164 | repoRemoveL: 'Quitar el repo {repo}', repoRemoved: 'Repo {repo} quitado', |
| 165 | + provEnableL: 'Activar {label}', sendFailed: 'No ha llegado (sin conexión o el buzón no responde). Tu texto sigue ahí.', | |
| 166 | + openIssues: 'Abrir incidencias', telIssues: '¿Prefieres dejarlo a la vista y poder seguirlo? Abre una incidencia:', | |
| 167 | + aboutTitle: 'ℹ️ Acerca de Elffuss Claw', aboutCode: 'Código:', aboutCommunity: 'comunidad:', aboutIssues: 'incidencias', | |
| 168 | + aboutLicense: 'Licencia Apache-2.0', aboutBuild: 'versión', buildDirty: 'desplegada con cambios sin publicar: no corresponde a ese commit', buildDev: 'de desarrollo', | |
| 165 | 169 | }, |
| 166 | 170 | en: { |
| 167 | 171 | welcome: 'An operating system with a soul that lives in your browser. Here apps aren’t installed: they’re created when you ask, appearing on the right. I can use your folders (with permission), store encrypted secrets, schedule tasks and browse for you. Everything stays on your machine.', |
| @@ -196,7 +200,7 @@ | ||
| 196 | 200 | settingsTitle: '⚙️ Models & advanced settings', |
| 197 | 201 | settingsDesc: 'Elffuss runs in your browser by default. Here you can connect external models (optional). Keys are stored only in this browser and calls go straight to the provider — nothing passes through our servers.', |
| 198 | 202 | modelPh: 'model', endpointPh: 'endpoint', lblModel: 'Model', lblEndpoint: 'Endpoint', lblApiKey: 'API key', |
| 199 | - keyNeeded: 'key (not needed)', provOn: '{label} enabled — pick it in the selector 🧠', provOff: '{label} disabled', | |
| 203 | + keyNeeded: 'key (not needed)', provOn: '{label} enabled: pick it in the model picker at the top', provOff: '{label} disabled', | |
| 200 | 204 | storeTitle: 'Downloaded model (cached in your browser)', storeCalc: 'Calculating space…', |
| 201 | 205 | storeClear: 'Clear model cache', storeClearing: 'Clearing…', cacheCleared: 'Cache cleared', |
| 202 | 206 | storeCached: '{gb} cached · ', storeNone: 'Nothing cached yet · ', |
| @@ -320,6 +324,10 @@ | ||
| 320 | 324 | browse: 'Browse', hideList: 'Hide', skillRemoved: 'Skill “{name}” removed', skillRemoveL: 'Remove the “{name}” skill', |
| 321 | 325 | skillSeeText: 'See what the model is given', repoAdded: 'Repo {repo} added: press “Browse” to see its skills', |
| 322 | 326 | repoRemoveL: 'Remove the {repo} repo', repoRemoved: 'Repo {repo} removed', |
| 327 | + provEnableL: 'Enable {label}', sendFailed: 'It did not arrive (offline, or the inbox is not answering). Your text is still there.', | |
| 328 | + openIssues: 'Open issues', telIssues: 'Would you rather leave it in the open and follow it up? Open an issue:', | |
| 329 | + aboutTitle: 'ℹ️ About Elffuss Claw', aboutCode: 'Code:', aboutCommunity: 'community:', aboutIssues: 'issues', | |
| 330 | + aboutLicense: 'Apache-2.0 licence', aboutBuild: 'version', buildDirty: 'deployed with unpublished changes: it does not match that commit', buildDev: 'development', | |
| 323 | 331 | }, |
| 324 | 332 | uk: { |
| 325 | 333 | welcome: "Операційна система з душею, що живе у твоєму браузері. Тут застосунки не встановлюють — їх створюють на твій запит, і вони з’являються праворуч. Можу працювати з твоїми теками (за дозволом), зберігати зашифровані секрети, планувати завдання й гортати за тебе. Усе лишається на твоєму пристрої.", |
modified web/js/ui.js +66 −7
| @@ -884,10 +884,14 @@ | ||
| 884 | 884 | for (const [id, c] of Object.entries(cfgs)) { |
| 885 | 885 | const wrap = el('div', 'card col'); |
| 886 | 886 | const head = el('div', 'row between'); |
| 887 | - const title = el('b', null, c.label); | |
| 887 | + // La casilla con nombre: era una casilla suelta sin etiqueta. | |
| 888 | 888 | const toggle = el('input'); |
| 889 | 889 | toggle.type = 'checkbox'; |
| 890 | + toggle.id = 'prov-' + id; | |
| 890 | 891 | toggle.checked = c.enabled; |
| 892 | + const title = el('label', 'prov-name', c.label); | |
| 893 | + title.htmlFor = toggle.id; | |
| 894 | + toggle.setAttribute('aria-label', tr('provEnableL', { label: c.label })); | |
| 891 | 895 | head.append(title, toggle); |
| 892 | 896 | wrap.appendChild(head); |
| 893 | 897 | wrap.appendChild(el('span', 'muted', c.help || '')); |
| @@ -915,7 +919,13 @@ | ||
| 915 | 919 | }); |
| 916 | 920 | onSettingsChangedCb(); |
| 917 | 921 | }; |
| 918 | - toggle.onchange = () => { save(); toast(toggle.checked ? tr('provOn', { label: c.label }) : tr('provOff', { label: c.label })); }; | |
| 922 | + // «Elígelo en el selector de modelo», con un botón que lleva a él (antes | |
| 923 | + // decía «en el selector 🧠», y 🧠 abre la Mente). | |
| 924 | + toggle.onchange = () => { | |
| 925 | + save(); | |
| 926 | + if (toggle.checked) toast(tr('provOn', { label: c.label }), { accion: { label: tr('pickModel'), run: enfocarSelectorModelo } }); | |
| 927 | + else toast(tr('provOff', { label: c.label })); | |
| 928 | + }; | |
| 919 | 929 | wrap.appendChild(btn(tr('save'), 'primary', () => { save(); toast(tr('saved')); })); |
| 920 | 930 | ext.appendChild(wrap); |
| 921 | 931 | } |
| @@ -961,26 +971,72 @@ | ||
| 961 | 971 | `<span class="muted">${tr('telPrivacy')}</span>` + |
| 962 | 972 | `<label class="muted" style="font-size:.8em;margin-top:4px">${tr('telManual')}</label>` + |
| 963 | 973 | `<textarea id="tel-feedback" rows="2" style="width:100%;resize:vertical" placeholder="${tr('telPh')}"></textarea>`; |
| 974 | + // Dice si LLEGÓ: antes daba las gracias y vaciaba el texto aunque el envío | |
| 975 | + // fallara. Si falla, el texto se queda y se ofrece el sitio público de | |
| 976 | + // incidencias, que además deja un enlace para seguirlo. | |
| 964 | 977 | const telSendBtn = btn(tr('send'), 'primary', async () => { |
| 965 | 978 | const ta = telCard.querySelector('#tel-feedback'); |
| 966 | 979 | const text = ta.value.trim(); |
| 967 | - if (!text) { toast(tr('writeSomething')); return; } | |
| 980 | + if (!text) { toast(tr('writeSomething')); ta.focus(); return; } | |
| 981 | + telSendBtn.disabled = true; | |
| 968 | 982 | const wasEnabled = telemetry.isEnabled(); |
| 969 | 983 | if (!wasEnabled) telemetry.setEnabled(true); // envío manual es explícito, se permite aunque el automático esté apagado |
| 970 | - await telemetry.sendFeedback(text); | |
| 971 | - if (!wasEnabled) telemetry.setEnabled(false); // no activa el automático de fondo si no lo pidió | |
| 972 | - ta.value = ''; | |
| 973 | - toast(tr('sentThanks')); | |
| 984 | + let llego = false; | |
| 985 | + try { llego = await telemetry.sendFeedback(text); } | |
| 986 | + finally { | |
| 987 | + if (!wasEnabled) telemetry.setEnabled(false); // no activa el automático de fondo si no lo pidió | |
| 988 | + telSendBtn.disabled = false; | |
| 989 | + } | |
| 990 | + if (llego) { ta.value = ''; toast(tr('sentThanks')); } | |
| 991 | + else toast(tr('sendFailed'), { accion: { label: tr('openIssues'), run: () => window.open(ISSUES_URL, '_blank', 'noopener,noreferrer') } }); | |
| 974 | 992 | }); |
| 975 | 993 | telCard.appendChild(telSendBtn); |
| 994 | + const alt = el('span', 'muted', tr('telIssues') + ' '); | |
| 995 | + alt.appendChild(enlaceFuera(ISSUES_URL, 'git.elffuss.com/elffuss/claw/issues ↗')); | |
| 996 | + telCard.appendChild(alt); | |
| 976 | 997 | panel.appendChild(telCard); |
| 977 | 998 | panel.appendChild(ext); // externos: lo último de todo |
| 978 | 999 | telCard.querySelector('#tel-enabled').checked = telemetry.isEnabled(); |
| 979 | 1000 | telCard.querySelector('#tel-enabled').onchange = e => telemetry.setEnabled(e.target.checked); |
| 980 | 1001 | |
| 1002 | + panel.appendChild(acercaDe()); | |
| 981 | 1003 | panel.appendChild(el('p', 'muted', tr('skillsTabHint'))); |
| 982 | 1004 | } |
| 983 | 1005 | |
| 1006 | +// ---------- acerca de ---------- | |
| 1007 | +// Dónde está el código, dónde se cuentan los fallos y con qué licencia. No | |
| 1008 | +// estaba en ninguna parte de la interfaz. | |
| 1009 | +const REPO_URL = 'https://github.com/KikoCis/elffuss-claw'; | |
| 1010 | +const COMUNIDAD_URL = 'https://git.elffuss.com/elffuss/claw'; | |
| 1011 | +const ISSUES_URL = COMUNIDAD_URL + '/issues'; | |
| 1012 | +function enlaceFuera(href, texto) { | |
| 1013 | + const a = document.createElement('a'); | |
| 1014 | + a.href = href; a.target = '_blank'; a.rel = 'noopener noreferrer'; | |
| 1015 | + a.textContent = texto; | |
| 1016 | + return a; | |
| 1017 | +} | |
| 1018 | +// El sello del build: un commit limpio enlaza a GitHub; «-dirty» (desplegado con | |
| 1019 | +// cambios sin commitear, ver deploy.sh) no, porque ese commit no es lo que se | |
| 1020 | +// sirve; en desarrollo no hay sello. | |
| 1021 | +export function enlaceBuild(sello) { | |
| 1022 | + const s = String(sello || '').trim(); | |
| 1023 | + if (/^[0-9a-f]{7,40}$/.test(s)) return enlaceFuera(`${REPO_URL}/commit/${s}`, s); | |
| 1024 | + if (/^[0-9a-f]{7,40}-dirty$/.test(s)) { const x = el('span', null, s); x.title = tr('buildDirty'); return x; } | |
| 1025 | + return el('span', null, tr('buildDev')); | |
| 1026 | +} | |
| 1027 | +function acercaDe() { | |
| 1028 | + const c = el('div', 'card col'); | |
| 1029 | + c.dataset.ruta = 'acerca'; // #/ajustes/acerca | |
| 1030 | + c.appendChild(el('b', null, tr('aboutTitle'))); | |
| 1031 | + const l1 = el('span', 'muted', tr('aboutCode') + ' '); | |
| 1032 | + l1.append(enlaceFuera(REPO_URL, 'github.com/KikoCis/elffuss-claw ↗'), ' · ' + tr('aboutCommunity') + ' ', | |
| 1033 | + enlaceFuera(COMUNIDAD_URL, 'git.elffuss.com/elffuss/claw ↗'), ' · ', enlaceFuera(ISSUES_URL, tr('aboutIssues') + ' ↗')); | |
| 1034 | + const l2 = el('span', 'muted', tr('aboutLicense') + ' · ' + tr('aboutBuild') + ' '); | |
| 1035 | + l2.appendChild(enlaceBuild($('build')?.dataset.sello || $('build')?.textContent)); | |
| 1036 | + c.append(l1, l2); | |
| 1037 | + return c; | |
| 1038 | +} | |
| 1039 | + | |
| 984 | 1040 | // Dos secciones que se repintan solas: lo instalado (con su contador) y las |
| 985 | 1041 | // fuentes. Antes «Quitar» y «Añadir repo» llamaban a refreshSettings() —el panel |
| 986 | 1042 | // de AJUSTES— y aquí no cambiaba nada hasta cambiar de pestaña; «Instalar» no |
| @@ -1256,6 +1312,9 @@ | ||
| 1256 | 1312 | try { const ro = new ResizeObserver(altoPie); ro.observe($('composer')); ro.observe($('chips')); } catch { /* sin ResizeObserver: queda el valor por defecto */ } |
| 1257 | 1313 | altoPie(); |
| 1258 | 1314 | |
| 1315 | + // el sello del build enlaza al commit cuando es un commit limpio | |
| 1316 | + { const b = $('build'); if (b) { const sello = b.textContent.trim(); b.dataset.sello = sello; b.replaceChildren(enlaceBuild(sello)); } } | |
| 1317 | + | |
| 1259 | 1318 | // iconos vectoriales (sin emojis) |
| 1260 | 1319 | $('model-ico').innerHTML = UI.code; |
| 1261 | 1320 | $('btn-clear').innerHTML = UI.newChat || UI.clear; |