utopia-ia/elffuss-code public
Changesets · Branches · Tags · Compare
| Changeset | 48f115f6583252e4a9381ea17399f3d3f1d912c4cb2deaf22d07f9d87300df3d |
|---|---|
| Author | KikoCis <kikocisneros@gmail.com> · 2026-10-11 15:10 +02:00 |
| Committer | KikoCis <kikocisneros@gmail.com> · 2026-10-11 15:10 +02:00 |
| Parents | 08a4eae756d0 |
5 files changed
modified tests/e2e.mjs +11 −5
| @@ -50,8 +50,10 @@ | ||
| 50 | 50 | await p.locator('#tree .file', { hasText: 'index.js' }).click(); |
| 51 | 51 | await p.waitForTimeout(1000); |
| 52 | 52 | const hasCode = await p.evaluate(() => window.monaco?.editor.getModels().some(m => m.getValue().includes('saludo'))); |
| 53 | - const tab = await p.locator('.tab.active').textContent().catch(() => ''); | |
| 54 | - ok('2 · abrir archivo del árbol → Monaco con su contenido', hasCode && /index\.js/.test(tab)); | |
| 53 | + // Solo las pestañas del EDITOR: desde c769f18 las conversaciones también son | |
| 54 | + // .tab.active (en #conv-tabs) y el selector suelto encontraba dos. | |
| 55 | + const tab = await p.locator('#tabs-bar .tab.active').textContent({ timeout: 5000 }).catch(e => 'ERROR: ' + e.message.split('\n')[0]); | |
| 56 | + ok('2 · abrir archivo del árbol → Monaco con su contenido', hasCode && /index\.js/.test(tab), tab); | |
| 55 | 57 | await p.context().close(); |
| 56 | 58 | } |
| 57 | 59 | |
| @@ -86,7 +88,9 @@ | ||
| 86 | 88 | await p.fill('#pal-input', 'utils'); await p.waitForTimeout(400); |
| 87 | 89 | const hits = await p.locator('.pal-item .pi-name').allTextContents(); |
| 88 | 90 | await p.locator('.pal-item').first().click(); await p.waitForTimeout(700); |
| 89 | - const tab = await p.locator('.tab.active').textContent().catch(() => ''); | |
| 91 | + // Solo las pestañas del EDITOR: desde c769f18 las conversaciones también son | |
| 92 | + // .tab.active (en #conv-tabs) y el selector suelto encontraba dos. | |
| 93 | + const tab = await p.locator('#tabs-bar .tab.active').textContent({ timeout: 5000 }).catch(e => 'ERROR: ' + e.message.split('\n')[0]); | |
| 90 | 94 | ok('5 · Command Palette abre, busca y abre el archivo', open && hits.some(h => /utils\.py/.test(h)) && /utils\.py/.test(tab)); |
| 91 | 95 | await p.context().close(); |
| 92 | 96 | } |
| @@ -113,8 +117,10 @@ | ||
| 113 | 117 | // ============ 8 · el E4B roto NO es cargable (anti-crash) ============ |
| 114 | 118 | { |
| 115 | 119 | const p = await ide(); |
| 116 | - const opts = await p.$$eval('#model-select option', os => os.map(o => o.textContent)); | |
| 117 | - ok('8 · Gemma E4B roto no se ofrece en el selector', !opts.some(o => /E4B/.test(o)), JSON.stringify(opts)); | |
| 120 | + // El E4B «healed» propio (roto) no se ofrece. El Gemma-4 E4B oficial de Google | |
| 121 | + // SÍ (de7a37e, con GPU de verdad): se mira el id y el nombre, no «E4B» suelto. | |
| 122 | + const opts = await p.$$eval('#model-select option', os => os.map(o => ({ id: o.value, label: o.textContent }))); | |
| 123 | + ok('8 · el E4B healed (roto) no se ofrece en el selector', !opts.some(o => o.id === 'litert' || o.id === 'litert:elffuss-e4b' || /Elffuss[^·]*E4B|healed/i.test(o.label)), JSON.stringify(opts.map(o => o.label))); | |
| 118 | 124 | await p.context().close(); |
| 119 | 125 | } |
| 120 | 126 |
modified web/js/i18n.js +2 −2
| @@ -73,7 +73,7 @@ | ||
| 73 | 73 | setTitle: "Ajustes", |
| 74 | 74 | close: "cerrar", |
| 75 | 75 | setBrainTitle: "Cerebro (modelo)", |
| 76 | - setModelE4bSub: "El mejor · WebGPU local · ~4 GB", | |
| 76 | + setModelE4bSub: "El mejor · WebGPU local · ~2.8 GB", | |
| 77 | 77 | setModelE2bSub: "Ligero · WebGPU local · ~2 GB", |
| 78 | 78 | setModelOnnxSub: "Ligero · WebGPU o CPU · ~600 MB", |
| 79 | 79 | setModelRulesSub: "Órdenes directas, cero descarga", |
| @@ -298,7 +298,7 @@ | ||
| 298 | 298 | setTitle: "Settings", |
| 299 | 299 | close: "close", |
| 300 | 300 | setBrainTitle: "Brain (model)", |
| 301 | - setModelE4bSub: "The best · local WebGPU · ~4 GB", | |
| 301 | + setModelE4bSub: "The best · local WebGPU · ~2.8 GB", | |
| 302 | 302 | setModelE2bSub: "Light · local WebGPU · ~2 GB", |
| 303 | 303 | setModelOnnxSub: "Light · WebGPU or CPU · ~600 MB", |
| 304 | 304 | setModelRulesSub: "Direct commands, zero download", |
modified web/js/lab.js +1 −1
| @@ -74,7 +74,7 @@ | ||
| 74 | 74 | ['rules', 'Reglas (sin GPU)', 'Determinista. Valida el arnés sin bajar pesos.'], |
| 75 | 75 | ['onnx:qwen3.5-0.8b', 'Qwen3.5-0.8B (CPU/wasm)', 'El ligero, por transformers.js.'], |
| 76 | 76 | ['litert:gemma-e2b', 'Gemma-4 E2B (~2 GB)', 'WebGPU.'], |
| 77 | - ['litert:gemma-e4b', 'Gemma-4 E4B (~3 GB)', 'WebGPU. El mejor.'], | |
| 77 | + ['litert:gemma-e4b', 'Gemma-4 E4B (~2.8 GB)', 'WebGPU. El mejor.'], | |
| 78 | 78 | ]; |
| 79 | 79 | |
| 80 | 80 | // Arranca con el cerebro que tenga el IDE, si es uno de los del Lab. |
modified web/js/main.js +2 −2
| @@ -631,7 +631,7 @@ | ||
| 631 | 631 | async function pickLocalBrain() { |
| 632 | 632 | const c = await gpuCapacity(); |
| 633 | 633 | if (c.gpu && !isMobile()) { |
| 634 | - if (c.maxBuf >= 2 ** 31 && c.mem >= 8) return 'litert:gemma-e4b'; // ~4 GB | |
| 634 | + if (c.maxBuf >= 2 ** 31 && c.mem >= 8) return 'litert:gemma-e4b'; // ~2.8 GB | |
| 635 | 635 | if (c.maxBuf >= 2 ** 30 && c.mem >= 6) return 'litert:gemma-e2b'; // ~2 GB |
| 636 | 636 | } |
| 637 | 637 | if (c.gpu && isMobile()) return 'litert:gemma-e2b'; |
| @@ -696,7 +696,7 @@ | ||
| 696 | 696 | // nombre que se queda viejo. |
| 697 | 697 | function modelOptionsLocales() { |
| 698 | 698 | const opts = []; |
| 699 | - if (realGPU) opts.push({ id: 'litert:gemma-e4b', label: 'Gemma-4 E4B · LiteRT-LM (~4 GB) ★' }); | |
| 699 | + if (realGPU) opts.push({ id: 'litert:gemma-e4b', label: 'Gemma-4 E4B · LiteRT-LM (~2.8 GB) ★' }); | |
| 700 | 700 | if (realGPU) opts.push({ id: 'litert:gemma-e2b', label: 'Gemma-4 E2B · LiteRT-LM (~2 GB)' }); |
| 701 | 701 | // `onnx` a secas era Elffuss LM y se ha quitado. Ojo con el patrón: ESTE era |
| 702 | 702 | // el TERCER sitio donde el mismo modelo estaba declarado a mano (el registro |
modified web/js/providers/litert.js +1 −1
| @@ -13,7 +13,7 @@ | ||
| 13 | 13 | // (E-010), por eso está gateado en el selector. |
| 14 | 14 | export const MODELS = { |
| 15 | 15 | 'gemma-e2b': { url: 'https://huggingface.co/litert-community/gemma-4-E2B-it-litert-lm/resolve/main/gemma-4-E2B-it-web.litertlm', label: 'Gemma-4 E2B', tag: '~2 GB · ligero' }, |
| 16 | - 'gemma-e4b': { url: 'https://huggingface.co/litert-community/gemma-4-E4B-it-litert-lm/resolve/main/gemma-4-E4B-it-web.litertlm', label: 'Gemma-4 E4B', tag: '~4 GB · el mejor' }, | |
| 16 | + 'gemma-e4b': { url: 'https://huggingface.co/litert-community/gemma-4-E4B-it-litert-lm/resolve/main/gemma-4-E4B-it-web.litertlm', label: 'Gemma-4 E4B', tag: '~2.8 GB · el mejor' }, | |
| 17 | 17 | 'elffuss-e4b': { url: 'https://huggingface.co/KikoCis/Elffuss-Gemma4-E4B-litert/resolve/main/model.litertlm', label: 'Elffuss E4B (healed)', tag: 'modelo propio' }, |
| 18 | 18 | }; |
| 19 | 19 |