Elffuss BraidHub

utopia-ia/elffuss-code public

Move Elffuss Code to the elffuss.com hosts

Defaults and links now point at the new hosts: the shared model broker
(models.elffuss.com), the og/twitter tags (code.elffuss.com), the default
Elffuss server endpoint in settings (claw.elffuss.com/v1), the dev
server's /v1 upstream (elffuss.com), the README, the URL deploy.sh
prints, and the hosts hardcoded in tests.

The local bridge now accepts code.elffuss.com and, during the transition,
the previous names: code.elffuss.utopiaia.com, which was missing until
now so the bridge rejected the app served from it, and the legacy
elffuss-code.utopiaia.com. Origins stay exact, with no suffix matching.
Bridge version 1.1.1. The five binaries in web/bridge-dl are rebuilt the
same way as before (go build -trimpath -ldflags='-s -w', same targets
and names).

deploy.sh keeps the server folder it syncs to: which folder serves which
host is decided by the server configuration, not by this script.
Changeset5312115361df56339e531ad37e2e61db37085c751e3b6ac306993df8e47a3845
AuthorKikoCis <kikocisneros@gmail.com> · 2026-10-07 15:25 +02:00
CommitterKikoCis <kikocisneros@gmail.com> · 2026-10-07 15:25 +02:00
Parentsed1b2e4a5263

Browse the files at this changeset

26 files changed

modified README.md +2 −2
@@ -4,13 +4,13 @@
44 editor), a file tree, tabs — with an AI agent that reads, searches and edits your project
55 for real. Everything runs in your browser: your code never leaves your machine.**
66
7-**[▶️ Live demo](https://elffuss-code.utopiaia.com)** ·
7+**[▶️ Live demo](https://code.elffuss.com)** ·
88 **[✳️ Elffuss Claw (sibling project)](https://github.com/KikoCis/elffuss-claw)** ·
99 **[🧬 Shared core](https://github.com/KikoCis/elffuss)** ·
1010 **License: Apache-2.0**
1111
1212 <p align="center">
13- <a href="https://elffuss-code.utopiaia.com">
13+ <a href="https://code.elffuss.com">
1414 <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">
1515 </a>
1616 </p>
modified bridge/main.go +11 −2
@@ -1,7 +1,8 @@
11 // Elffuss Bridge — puente local para que Elffuss Code (el navegador) pueda
22 // ejecutar comandos REALES en tu máquina (node, npm, python…), sin salir de
33 // 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)
56 // 2) cabecera Host de loopback (defensa extra contra DNS-rebinding)
67 // 3) un TOKEN de un solo arranque, que se imprime aquí y se pega en la web
78 // Sin las tres cosas, ninguna página puede conectarse ni ejecutar nada.
@@ -35,13 +36,21 @@
3536 "github.com/gorilla/websocket"
3637 )
3738
38-const version = "1.1.0"
39+const version = "1.1.1"
3940
4041 // Tope de salida por comando: evita que un proceso que escupe sin fin inunde el
4142 // WebSocket (DoS de memoria). Al superarlo se corta y se avisa.
4243 const maxOutputBytes = 8 << 20 // 8 MiB
4344
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.
4451 var allowedOrigins = map[string]bool{
52+ "https://code.elffuss.com": true,
53+ "https://code.elffuss.utopiaia.com": true,
4554 "https://elffuss-code.utopiaia.com": true,
4655 "http://localhost:8799": true,
4756 "http://127.0.0.1:8799": true,
modified deploy.sh +6 −2
@@ -1,5 +1,5 @@
11 #!/usr/bin/env bash
2-# Deploy de Elffuss Code a elffuss-code.utopiaia.com
2+# Deploy de Elffuss Code a code.elffuss.com
33 set -euo pipefail
44 cd "$(dirname "$0")"
55
@@ -9,6 +9,10 @@
99 # export ELFFUSS_HOST=usuario@servidor ELFFUSS_KEY=~/.ssh/tu_clave
1010 HOST=${ELFFUSS_HOST:?define ELFFUSS_HOST (usuario@servidor) antes de desplegar}
1111 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.
1216 DEST=/var/www/elffuss-code.utopiaia.com
1317
1418 # El blog diario publica en <docroot>/blog/, que no existe en web/. Sin este
@@ -41,4 +45,4 @@
4145 V=$(git rev-parse --short HEAD 2>/dev/null || date +%s)
4246 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"
4347
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 @@
1717 MAX_PROXY_BYTES = 2_000_000
1818 # En desarrollo, /v1 (modelo) se reenvía a producción; en producción lo
1919 # 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'
2121
2222
2323 class Handler(http.server.SimpleHTTPRequestHandler):
modified tests/_audio_probe.mjs +1 −1
@@ -1,5 +1,5 @@
11 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';
33 const b = await chromium.launch({ args: ['--autoplay-policy=no-user-gesture-required'] });
44 const ctx = await b.newContext();
55 await ctx.addInitScript(() => { try { localStorage.setItem('elffusscode.model', 'rules'); } catch {} });
modified tests/alltools.mjs +2 −2
@@ -1,9 +1,9 @@
11 // Test INTEGRAL: valida TODAS las herramientas de la elfa de Code, cada una vía
22 // runTool (deterministicо, sin depender del modelo), + el flujo del agente que
33 // 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.
55 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';
77 let fails = 0;
88 const ok = (n, c, e = '') => { console.log((c ? '✅' : '❌') + ' ' + n + (e ? ' — ' + String(e).replace(/\n/g, ' ').slice(0, 90) : '')); if (!c) fails++; };
99
modified tests/appbuild_gif.mjs +1 −1
@@ -10,7 +10,7 @@
1010 const OUT = (process.env.SCRATCH || '/tmp/elffuss-test') + '/appbuild';
1111 const FRAMES = OUT + '/frames';
1212 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';
1414 const INTERVAL_MS = 3000;
1515
1616 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 @@
11 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';
33 let fails = 0; const ok = (n,c,e='')=>{console.log((c?'✅':'❌')+' '+n+(e?' — '+e:''));if(!c)fails++};
44 const b = await chromium.launch(); const ctx = await b.newContext();
55 await ctx.addInitScript(()=>{try{localStorage.setItem('elffusscode.model','rules')}catch{}});
modified tests/demo_code_final.mjs +1 −1
@@ -8,7 +8,7 @@
88 const REC = process.env.REC || new URL('../../elffuss-assets/_recording', import.meta.url).pathname;
99 const OUT = process.env.OUT || REC + '/videos';
1010 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';
1212
1313 async function waitIdle(p, maxMs = 180000) {
1414 const t0 = Date.now();
modified tests/diag_sw.mjs +1 −1
@@ -1,5 +1,5 @@
11 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';
33 const MODEL = process.env.M || 'litert:gemma-e2b';
44 const b = await chromium.launch({ args: ['--enable-unsafe-webgpu','--use-angle=metal'] });
55 const ctx = await b.newContext();
modified tests/e2e.mjs +2 −2
@@ -2,10 +2,10 @@
22 // Usa el gancho ?test-opfs (proyecto en OPFS del navegador, sin picker nativo)
33 // y el modo básico determinista. Ejercita árbol, Monaco, herramientas y chrome.
44 //
5-// BASE=https://elffuss-code.utopiaia.com node e2e.mjs
5+// BASE=https://code.elffuss.com node e2e.mjs
66 import { chromium } from 'playwright';
77
8-const BASE = process.env.BASE || 'https://elffuss-code.utopiaia.com';
8+const BASE = process.env.BASE || 'https://code.elffuss.com';
99 let fails = 0;
1010 const ok = (name, cond, extra = '') => { console.log((cond ? '✅' : '❌') + ' ' + name + (extra ? ' — ' + extra : '')); if (!cond) fails++; };
1111
modified tests/edit-bateria.mjs +1 −1
@@ -113,7 +113,7 @@
113113
114114 const b = await chromium.launch({ channel: 'chrome', headless: true });
115115 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' });
117117 await p.waitForTimeout(1200);
118118
119119 const res = await p.evaluate(async (CASOS) => {
modified tests/goalfail.mjs +1 −1
@@ -4,7 +4,7 @@
44 const b = await chromium.launch({ channel: 'chrome', headless: true });
55 const p = await (await b.newContext()).newPage();
66 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' });
88 await p.waitForTimeout(1500);
99
1010 const r = await p.evaluate(async () => {
modified tests/retry-test.mjs +1 −1
@@ -4,7 +4,7 @@
44 import { chromium } from 'playwright';
55 const b = await chromium.launch({ channel: 'chrome', headless: true });
66 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' });
88 await p.waitForTimeout(1200);
99 const r = await p.evaluate(async () => {
1010 const { Agent } = await import('/js/agent.js?v=' + Date.now());
modified tests/run-bateria.mjs +1 −1
@@ -56,7 +56,7 @@
5656
5757 const b = await chromium.launch({ channel: 'chrome', headless: true });
5858 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' });
6060 await p.waitForTimeout(1200);
6161
6262 const res = await p.evaluate(async (CASOS) => {
modified tests/run-tools.sh +1 −1
@@ -5,7 +5,7 @@
55 # arreglar una suite y no correr las demás.
66 #
77 # ./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
99 set -uo pipefail
1010 cd "$(dirname "$0")"
1111 export BASE="${BASE:-http://localhost:8790}"
modified tests/stop.mjs +1 −1
@@ -3,7 +3,7 @@
33 import { chromium } from 'playwright';
44 const b = await chromium.launch({ channel: 'chrome', headless: true });
55 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' });
77 await p.waitForTimeout(1200);
88 const r = await p.evaluate(async () => {
99 const { Agent } = await import('/js/agent.js?v=' + Date.now());
modified tests/warmup_code.mjs +1 −1
@@ -1,5 +1,5 @@
11 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';
33 const PROFILE = (process.env.SCRATCH || '/tmp/elffuss-test') + '/profile-code-gemma';
44 const ctx = await chromium.launchPersistentContext(PROFILE, {
55 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 @@
88 <meta property="og:site_name" content="Elffuss">
99 <meta property="og:title" content="Elffuss Code — a VS Code-style IDE with an AI soul, in your browser">
1010 <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">
1313 <meta property="og:image:width" content="1200">
1414 <meta property="og:image:height" content="630">
1515 <meta name="twitter:card" content="summary_large_image">
1616 <meta name="twitter:title" content="Elffuss Code — a VS Code-style IDE with an AI soul, in your browser">
1717 <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">
1919 <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.">
2020 <link rel="icon" href="img/elffuss-code.svg">
2121 <link rel="manifest" href="manifest.json">
modified web/js/runtime/model-broker.js +4 −2
@@ -1,11 +1,13 @@
11 // Elffuss Runtime · SDK de la caché compartida de modelos.
22 // ─────────────────────────────────────────────────────────────────────────────
33 // 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
55 // —igual que todas las webs de Elffuss (mismo «site»)—, comparte UNA sola OPFS:
66 // el modelo se descarga UNA vez y se reutiliza en claw/translator/copilot/code…
77 // 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/';
911
1012 let _iframe = null, _ready = null, _seq = 0, _url = BROKER_URL;
1113
modified web/js/settings.js +1 −1
@@ -23,7 +23,7 @@
2323 },
2424 server: {
2525 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: '',
2727 temperature: 1.0, top_p: 0.95, thinking: false,
2828 help: 'El modelo grande en el servidor de UtopiaIA. No es local: los mensajes salen de tu máquina.',
2929 },