utopia-ia/elffuss-code public
Changesets · Branches · Tags · Compare
| Changeset | 5312115361df56339e531ad37e2e61db37085c751e3b6ac306993df8e47a3845 |
|---|---|
| Author | KikoCis <kikocisneros@gmail.com> · 2026-10-07 15:25 +02:00 |
| Committer | KikoCis <kikocisneros@gmail.com> · 2026-10-07 15:25 +02:00 |
| Parents | ed1b2e4a5263 |
26 files changed
modified README.md +2 −2
| @@ -4,13 +4,13 @@ | ||
| 4 | 4 | editor), a file tree, tabs — with an AI agent that reads, searches and edits your project |
| 5 | 5 | for real. Everything runs in your browser: your code never leaves your machine.** |
| 6 | 6 | |
| 7 | -**[▶️ Live demo](https://elffuss-code.utopiaia.com)** · | |
| 7 | +**[▶️ Live demo](https://code.elffuss.com)** · | |
| 8 | 8 | **[✳️ Elffuss Claw (sibling project)](https://github.com/KikoCis/elffuss-claw)** · |
| 9 | 9 | **[🧬 Shared core](https://github.com/KikoCis/elffuss)** · |
| 10 | 10 | **License: Apache-2.0** |
| 11 | 11 | |
| 12 | 12 | <p align="center"> |
| 13 | - <a href="https://elffuss-code.utopiaia.com"> | |
| 13 | + <a href="https://code.elffuss.com"> | |
| 14 | 14 | <img src="https://utopiaia.com/demos/elffuss/elffuss-code-demo.gif" alt="Elffuss Code — the agent reads calc.py, finds a real bug and fixes it, all locally" width="820"> |
| 15 | 15 | </a> |
| 16 | 16 | </p> |
modified bridge/main.go +11 −2
| @@ -1,7 +1,8 @@ | ||
| 1 | 1 | // Elffuss Bridge — puente local para que Elffuss Code (el navegador) pueda |
| 2 | 2 | // ejecutar comandos REALES en tu máquina (node, npm, python…), sin salir de |
| 3 | 3 | // tu ordenador. Escucha SOLO en 127.0.0.1 y exige: |
| 4 | -// 1) Origin permitido (elffuss-code.utopiaia.com o localhost de desarrollo) | |
| 4 | +// 1) Origin permitido (code.elffuss.com, sus nombres anteriores o localhost | |
| 5 | +// de desarrollo) | |
| 5 | 6 | // 2) cabecera Host de loopback (defensa extra contra DNS-rebinding) |
| 6 | 7 | // 3) un TOKEN de un solo arranque, que se imprime aquí y se pega en la web |
| 7 | 8 | // Sin las tres cosas, ninguna página puede conectarse ni ejecutar nada. |
| @@ -35,13 +36,21 @@ | ||
| 35 | 36 | "github.com/gorilla/websocket" |
| 36 | 37 | ) |
| 37 | 38 | |
| 38 | -const version = "1.1.0" | |
| 39 | +const version = "1.1.1" | |
| 39 | 40 | |
| 40 | 41 | // Tope de salida por comando: evita que un proceso que escupe sin fin inunde el |
| 41 | 42 | // WebSocket (DoS de memoria). Al superarlo se corta y se avisa. |
| 42 | 43 | const maxOutputBytes = 8 << 20 // 8 MiB |
| 43 | 44 | |
| 45 | +// Orígenes EXACTOS, sin comodines: un sufijo como «*.utopiaia.com» dejaría | |
| 46 | +// conectarse a cualquier web de ese dominio, y esto ejecuta shell real. | |
| 47 | +// code.elffuss.com es el nombre actual. code.elffuss.utopiaia.com es el | |
| 48 | +// anterior y se sigue aceptando mientras dure el cambio de dominio; antes | |
| 49 | +// faltaba aquí, así que desde él la web cargaba pero el bridge la rechazaba. | |
| 50 | +// elffuss-code.utopiaia.com es el alias más antiguo, por compatibilidad. | |
| 44 | 51 | var allowedOrigins = map[string]bool{ |
| 52 | + "https://code.elffuss.com": true, | |
| 53 | + "https://code.elffuss.utopiaia.com": true, | |
| 45 | 54 | "https://elffuss-code.utopiaia.com": true, |
| 46 | 55 | "http://localhost:8799": true, |
| 47 | 56 | "http://127.0.0.1:8799": true, |
modified deploy.sh +6 −2
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | #!/usr/bin/env bash |
| 2 | -# Deploy de Elffuss Code a elffuss-code.utopiaia.com | |
| 2 | +# Deploy de Elffuss Code a code.elffuss.com | |
| 3 | 3 | set -euo pipefail |
| 4 | 4 | cd "$(dirname "$0")" |
| 5 | 5 | |
| @@ -9,6 +9,10 @@ | ||
| 9 | 9 | # export ELFFUSS_HOST=usuario@servidor ELFFUSS_KEY=~/.ssh/tu_clave |
| 10 | 10 | HOST=${ELFFUSS_HOST:?define ELFFUSS_HOST (usuario@servidor) antes de desplegar} |
| 11 | 11 | KEY=${ELFFUSS_KEY:?define ELFFUSS_KEY (ruta a la clave ssh)} |
| 12 | +# DEST es una CARPETA del servidor, no la dirección pública, y conserva el | |
| 13 | +# nombre viejo a propósito: qué carpeta sirve cada host lo decide la | |
| 14 | +# configuración del servidor, y renombrarla solo aquí publicaría en un sitio que | |
| 15 | +# nadie sirve. Que el nombre no engañe: la web sale en code.elffuss.com. | |
| 12 | 16 | DEST=/var/www/elffuss-code.utopiaia.com |
| 13 | 17 | |
| 14 | 18 | # El blog diario publica en <docroot>/blog/, que no existe en web/. Sin este |
| @@ -41,4 +45,4 @@ | ||
| 41 | 45 | V=$(git rev-parse --short HEAD 2>/dev/null || date +%s) |
| 42 | 46 | ssh -i "$KEY" "$HOST" "sed -i 's|href=\"css/\([^\"]*\)\.css\"|href=\"css/\1.css?v=$V\"|g; s|src=\"js/\([^\"]*\)\.js\"|src=\"js/\1.js?v=$V\"|g; s|__BUILD__|$V|g' $DEST/index.html" |
| 43 | 47 | |
| 44 | -echo "🧝💻 desplegado → https://elffuss-code.utopiaia.com (build $V)" | |
| 48 | +echo "🧝💻 desplegado → https://code.elffuss.com (build $V)" |
modified server/serve.py +1 −1
| @@ -17,7 +17,7 @@ | ||
| 17 | 17 | MAX_PROXY_BYTES = 2_000_000 |
| 18 | 18 | # En desarrollo, /v1 (modelo) se reenvía a producción; en producción lo |
| 19 | 19 | # resuelve nginx directamente contra llama-server, no este forward. |
| 20 | -LM_UPSTREAM = os.environ.get('ELFFUSS_LM') or 'https://elffuss.utopiaia.com' | |
| 20 | +LM_UPSTREAM = os.environ.get('ELFFUSS_LM') or 'https://elffuss.com' | |
| 21 | 21 | |
| 22 | 22 | |
| 23 | 23 | class Handler(http.server.SimpleHTTPRequestHandler): |
modified tests/_audio_probe.mjs +1 −1
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | import { chromium } from 'playwright'; |
| 2 | -const BASE = process.env.BASE || 'https://elffuss-code.utopiaia.com'; | |
| 2 | +const BASE = process.env.BASE || 'https://code.elffuss.com'; | |
| 3 | 3 | const b = await chromium.launch({ args: ['--autoplay-policy=no-user-gesture-required'] }); |
| 4 | 4 | const ctx = await b.newContext(); |
| 5 | 5 | await ctx.addInitScript(() => { try { localStorage.setItem('elffusscode.model', 'rules'); } catch {} }); |
modified tests/alltools.mjs +2 −2
| @@ -1,9 +1,9 @@ | ||
| 1 | 1 | // Test INTEGRAL: valida TODAS las herramientas de la elfa de Code, cada una vía |
| 2 | 2 | // runTool (deterministicо, sin depender del modelo), + el flujo del agente que |
| 3 | 3 | // ejecuta varias tool-calls de un mensaje. web.search/web.fetch usan internet |
| 4 | -// real (proxy del servidor) → correr con BASE=https://elffuss-code.utopiaia.com. | |
| 4 | +// real (proxy del servidor) → correr con BASE=https://code.elffuss.com. | |
| 5 | 5 | import { chromium } from 'playwright'; |
| 6 | -const BASE = process.env.BASE || 'https://elffuss-code.utopiaia.com'; | |
| 6 | +const BASE = process.env.BASE || 'https://code.elffuss.com'; | |
| 7 | 7 | let fails = 0; |
| 8 | 8 | const ok = (n, c, e = '') => { console.log((c ? '✅' : '❌') + ' ' + n + (e ? ' — ' + String(e).replace(/\n/g, ' ').slice(0, 90) : '')); if (!c) fails++; }; |
| 9 | 9 |
modified tests/appbuild_gif.mjs +1 −1
| @@ -10,7 +10,7 @@ | ||
| 10 | 10 | const OUT = (process.env.SCRATCH || '/tmp/elffuss-test') + '/appbuild'; |
| 11 | 11 | const FRAMES = OUT + '/frames'; |
| 12 | 12 | mkdirSync(FRAMES, { recursive: true }); |
| 13 | -const BASE = process.env.BASE || 'https://elffuss-code.utopiaia.com'; | |
| 13 | +const BASE = process.env.BASE || 'https://code.elffuss.com'; | |
| 14 | 14 | const INTERVAL_MS = 3000; |
| 15 | 15 | |
| 16 | 16 | let fails = 0; const ok = (n, c, e = '') => { console.log((c ? '✅' : '❌') + ' ' + n + (e ? ' — ' + e : '')); if (!c) fails++; }; |
modified tests/ctxmenu.mjs +1 −1
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | import { chromium } from 'playwright'; |
| 2 | -const BASE = process.env.BASE || 'https://elffuss-code.utopiaia.com'; | |
| 2 | +const BASE = process.env.BASE || 'https://code.elffuss.com'; | |
| 3 | 3 | let fails = 0; const ok = (n,c,e='')=>{console.log((c?'✅':'❌')+' '+n+(e?' — '+e:''));if(!c)fails++}; |
| 4 | 4 | const b = await chromium.launch(); const ctx = await b.newContext(); |
| 5 | 5 | await ctx.addInitScript(()=>{try{localStorage.setItem('elffusscode.model','rules')}catch{}}); |
modified tests/demo_code_final.mjs +1 −1
| @@ -8,7 +8,7 @@ | ||
| 8 | 8 | const REC = process.env.REC || new URL('../../elffuss-assets/_recording', import.meta.url).pathname; |
| 9 | 9 | const OUT = process.env.OUT || REC + '/videos'; |
| 10 | 10 | mkdirSync(OUT, { recursive: true }); |
| 11 | -const BASE = process.env.BASE || 'https://elffuss-code.utopiaia.com'; | |
| 11 | +const BASE = process.env.BASE || 'https://code.elffuss.com'; | |
| 12 | 12 | |
| 13 | 13 | async function waitIdle(p, maxMs = 180000) { |
| 14 | 14 | const t0 = Date.now(); |
modified tests/diag_sw.mjs +1 −1
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | import { chromium } from 'playwright'; |
| 2 | -const BASE = process.env.BASE || 'https://elffuss-code.utopiaia.com'; | |
| 2 | +const BASE = process.env.BASE || 'https://code.elffuss.com'; | |
| 3 | 3 | const MODEL = process.env.M || 'litert:gemma-e2b'; |
| 4 | 4 | const b = await chromium.launch({ args: ['--enable-unsafe-webgpu','--use-angle=metal'] }); |
| 5 | 5 | const ctx = await b.newContext(); |
modified tests/e2e.mjs +2 −2
| @@ -2,10 +2,10 @@ | ||
| 2 | 2 | // Usa el gancho ?test-opfs (proyecto en OPFS del navegador, sin picker nativo) |
| 3 | 3 | // y el modo básico determinista. Ejercita árbol, Monaco, herramientas y chrome. |
| 4 | 4 | // |
| 5 | -// BASE=https://elffuss-code.utopiaia.com node e2e.mjs | |
| 5 | +// BASE=https://code.elffuss.com node e2e.mjs | |
| 6 | 6 | import { chromium } from 'playwright'; |
| 7 | 7 | |
| 8 | -const BASE = process.env.BASE || 'https://elffuss-code.utopiaia.com'; | |
| 8 | +const BASE = process.env.BASE || 'https://code.elffuss.com'; | |
| 9 | 9 | let fails = 0; |
| 10 | 10 | const ok = (name, cond, extra = '') => { console.log((cond ? '✅' : '❌') + ' ' + name + (extra ? ' — ' + extra : '')); if (!cond) fails++; }; |
| 11 | 11 |
modified tests/edit-bateria.mjs +1 −1
| @@ -113,7 +113,7 @@ | ||
| 113 | 113 | |
| 114 | 114 | const b = await chromium.launch({ channel: 'chrome', headless: true }); |
| 115 | 115 | const p = await (await b.newContext()).newPage(); |
| 116 | -await p.goto('https://code.elffuss.utopiaia.com/', { waitUntil: 'domcontentloaded' }); | |
| 116 | +await p.goto('https://code.elffuss.com/', { waitUntil: 'domcontentloaded' }); | |
| 117 | 117 | await p.waitForTimeout(1200); |
| 118 | 118 | |
| 119 | 119 | const res = await p.evaluate(async (CASOS) => { |
modified tests/goalfail.mjs +1 −1
| @@ -4,7 +4,7 @@ | ||
| 4 | 4 | const b = await chromium.launch({ channel: 'chrome', headless: true }); |
| 5 | 5 | const p = await (await b.newContext()).newPage(); |
| 6 | 6 | const errs = []; p.on('pageerror', e => errs.push(e.message.slice(0, 80))); |
| 7 | -await p.goto('https://code.elffuss.utopiaia.com/', { waitUntil: 'domcontentloaded' }); | |
| 7 | +await p.goto('https://code.elffuss.com/', { waitUntil: 'domcontentloaded' }); | |
| 8 | 8 | await p.waitForTimeout(1500); |
| 9 | 9 | |
| 10 | 10 | const r = await p.evaluate(async () => { |
modified tests/retry-test.mjs +1 −1
| @@ -4,7 +4,7 @@ | ||
| 4 | 4 | import { chromium } from 'playwright'; |
| 5 | 5 | const b = await chromium.launch({ channel: 'chrome', headless: true }); |
| 6 | 6 | const p = await (await b.newContext()).newPage(); |
| 7 | -await p.goto('https://code.elffuss.utopiaia.com/', { waitUntil: 'domcontentloaded' }); | |
| 7 | +await p.goto('https://code.elffuss.com/', { waitUntil: 'domcontentloaded' }); | |
| 8 | 8 | await p.waitForTimeout(1200); |
| 9 | 9 | const r = await p.evaluate(async () => { |
| 10 | 10 | const { Agent } = await import('/js/agent.js?v=' + Date.now()); |
modified tests/run-bateria.mjs +1 −1
| @@ -56,7 +56,7 @@ | ||
| 56 | 56 | |
| 57 | 57 | const b = await chromium.launch({ channel: 'chrome', headless: true }); |
| 58 | 58 | const p = await (await b.newContext()).newPage(); |
| 59 | -await p.goto('https://code.elffuss.utopiaia.com/', { waitUntil: 'domcontentloaded' }); | |
| 59 | +await p.goto('https://code.elffuss.com/', { waitUntil: 'domcontentloaded' }); | |
| 60 | 60 | await p.waitForTimeout(1200); |
| 61 | 61 | |
| 62 | 62 | const res = await p.evaluate(async (CASOS) => { |
modified tests/run-tools.sh +1 −1
| @@ -5,7 +5,7 @@ | ||
| 5 | 5 | # arreglar una suite y no correr las demás. |
| 6 | 6 | # |
| 7 | 7 | # ./run-tools.sh # contra el dev local (8790) |
| 8 | -# BASE=https://elffuss-code.utopiaia.com ./run-tools.sh # contra producción | |
| 8 | +# BASE=https://code.elffuss.com ./run-tools.sh # contra producción | |
| 9 | 9 | set -uo pipefail |
| 10 | 10 | cd "$(dirname "$0")" |
| 11 | 11 | export BASE="${BASE:-http://localhost:8790}" |
modified tests/stop.mjs +1 −1
| @@ -3,7 +3,7 @@ | ||
| 3 | 3 | import { chromium } from 'playwright'; |
| 4 | 4 | const b = await chromium.launch({ channel: 'chrome', headless: true }); |
| 5 | 5 | const p = await (await b.newContext()).newPage(); |
| 6 | -await p.goto('https://code.elffuss.utopiaia.com/', { waitUntil: 'domcontentloaded' }); | |
| 6 | +await p.goto('https://code.elffuss.com/', { waitUntil: 'domcontentloaded' }); | |
| 7 | 7 | await p.waitForTimeout(1200); |
| 8 | 8 | const r = await p.evaluate(async () => { |
| 9 | 9 | const { Agent } = await import('/js/agent.js?v=' + Date.now()); |
modified tests/warmup_code.mjs +1 −1
| @@ -1,5 +1,5 @@ | ||
| 1 | 1 | import { chromium } from 'playwright'; |
| 2 | -const BASE = process.env.BASE || 'https://elffuss-code.utopiaia.com'; | |
| 2 | +const BASE = process.env.BASE || 'https://code.elffuss.com'; | |
| 3 | 3 | const PROFILE = (process.env.SCRATCH || '/tmp/elffuss-test') + '/profile-code-gemma'; |
| 4 | 4 | const ctx = await chromium.launchPersistentContext(PROFILE, { |
| 5 | 5 | args: ['--autoplay-policy=no-user-gesture-required', '--enable-unsafe-webgpu', '--use-angle=metal'], |
modified web/bridge-dl/elffuss-bridge-linux +0 −0
Not shown: the file is larger than the hub shows, or this page holds as much as it shows. View the file.
modified web/bridge-dl/elffuss-bridge-linux-arm64 +0 −0
Not shown: the file is larger than the hub shows, or this page holds as much as it shows. View the file.
modified web/bridge-dl/elffuss-bridge-mac-arm64 +0 −0
Not shown: the file is larger than the hub shows, or this page holds as much as it shows. View the file.
modified web/bridge-dl/elffuss-bridge-mac-intel +0 −0
Not shown: the file is larger than the hub shows, or this page holds as much as it shows. View the file.
modified web/bridge-dl/elffuss-bridge-windows.exe +0 −0
Not shown: the file is larger than the hub shows, or this page holds as much as it shows. View the file.
modified web/index.html +3 −3
| @@ -8,14 +8,14 @@ | ||
| 8 | 8 | <meta property="og:site_name" content="Elffuss"> |
| 9 | 9 | <meta property="og:title" content="Elffuss Code — a VS Code-style IDE with an AI soul, in your browser"> |
| 10 | 10 | <meta property="og:description" content="A web IDE with an AI coding elf that reads, searches and edits your project. Open a folder and code with a local model on WebGPU — nothing leaves your machine."> |
| 11 | -<meta property="og:url" content="https://code.elffuss.utopiaia.com/"> | |
| 12 | -<meta property="og:image" content="https://code.elffuss.utopiaia.com/og.png"> | |
| 11 | +<meta property="og:url" content="https://code.elffuss.com/"> | |
| 12 | +<meta property="og:image" content="https://code.elffuss.com/og.png"> | |
| 13 | 13 | <meta property="og:image:width" content="1200"> |
| 14 | 14 | <meta property="og:image:height" content="630"> |
| 15 | 15 | <meta name="twitter:card" content="summary_large_image"> |
| 16 | 16 | <meta name="twitter:title" content="Elffuss Code — a VS Code-style IDE with an AI soul, in your browser"> |
| 17 | 17 | <meta name="twitter:description" content="A web IDE with an AI coding elf that reads, searches and edits your project. Open a folder and code with a local model on WebGPU — nothing leaves your machine."> |
| 18 | -<meta name="twitter:image" content="https://code.elffuss.utopiaia.com/og.png"> | |
| 18 | +<meta name="twitter:image" content="https://code.elffuss.com/og.png"> | |
| 19 | 19 | <meta name="description" content="Open a local folder and code with Elffuss: a web IDE plus an AI agent that runs on your own GPU (WebGPU). Nothing leaves your machine."> |
| 20 | 20 | <link rel="icon" href="img/elffuss-code.svg"> |
| 21 | 21 | <link rel="manifest" href="manifest.json"> |
modified web/js/runtime/model-broker.js +4 −2
| @@ -1,11 +1,13 @@ | ||
| 1 | 1 | // Elffuss Runtime · SDK de la caché compartida de modelos. |
| 2 | 2 | // ───────────────────────────────────────────────────────────────────────────── |
| 3 | 3 | // Embebe un iframe oculto al BROKER (origen compartido de Elffuss) y le pide los |
| 4 | -// modelos por postMessage. Como el broker vive en un subdominio de utopiaia.com | |
| 4 | +// modelos por postMessage. Como el broker vive en un subdominio de elffuss.com | |
| 5 | 5 | // —igual que todas las webs de Elffuss (mismo «site»)—, comparte UNA sola OPFS: |
| 6 | 6 | // el modelo se descarga UNA vez y se reutiliza en claw/translator/copilot/code… |
| 7 | 7 | // Si el broker no está disponible, el llamador cae a su OPFS local (model-store). |
| 8 | -export const BROKER_URL = 'https://models.elffuss.utopiaia.com/'; | |
| 8 | +// Lo guardado bajo los nombres viejos (*.elffuss.utopiaia.com) es de otro «site» | |
| 9 | +// y no se ve desde aquí: tras el cambio de dominio el modelo se baja otra vez. | |
| 10 | +export const BROKER_URL = 'https://models.elffuss.com/'; | |
| 9 | 11 | |
| 10 | 12 | let _iframe = null, _ready = null, _seq = 0, _url = BROKER_URL; |
| 11 | 13 |
modified web/js/settings.js +1 −1
| @@ -23,7 +23,7 @@ | ||
| 23 | 23 | }, |
| 24 | 24 | server: { |
| 25 | 25 | kind: 'openai', label: 'Servidor Elffuss (Ornith 9B)', enabled: false, |
| 26 | - baseURL: 'https://elffuss-claw.utopiaia.com/v1', model: 'ornith-9b', apiKey: '', | |
| 26 | + baseURL: 'https://claw.elffuss.com/v1', model: 'ornith-9b', apiKey: '', | |
| 27 | 27 | temperature: 1.0, top_p: 0.95, thinking: false, |
| 28 | 28 | help: 'El modelo grande en el servidor de UtopiaIA. No es local: los mensajes salen de tu máquina.', |
| 29 | 29 | }, |