| 1 | <!doctype html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="utf-8"> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 6 | <title>Elffuss Code — a VS Code-style IDE with an AI soul, in your browser</title> |
| 7 | <meta property="og:type" content="website"> |
| 8 | <meta property="og:site_name" content="Elffuss"> |
| 9 | <meta property="og:title" content="Elffuss Code — a VS Code-style IDE with an AI soul, in your browser"> |
| 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.com/"> |
| 12 | <meta property="og:image" content="https://code.elffuss.com/og.png"> |
| 13 | <meta property="og:image:width" content="1200"> |
| 14 | <meta property="og:image:height" content="630"> |
| 15 | <meta name="twitter:card" content="summary_large_image"> |
| 16 | <meta name="twitter:title" content="Elffuss Code — a VS Code-style IDE with an AI soul, in your browser"> |
| 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.com/og.png"> |
| 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 | <link rel="icon" href="img/elffuss-code.svg"> |
| 21 | <link rel="manifest" href="manifest.json"> |
| 22 | <meta name="theme-color" content="#0e0c18"> |
| 23 | <link rel="apple-touch-icon" href="img/icon-192.png"> |
| 24 | <link rel="stylesheet" href="css/code.css"> |
| 25 | <!-- import map: la ciudad 3D (VibeCodeViewer vendorizado en js/vcc) usa import 'three' --> |
| 26 | <script type="importmap"> |
| 27 | { "imports": { |
| 28 | "three": "https://cdn.jsdelivr.net/npm/three@0.160.0/build/three.module.js", |
| 29 | "three/addons/": "https://cdn.jsdelivr.net/npm/three@0.160.0/examples/jsm/" |
| 30 | }} |
| 31 | </script> |
| 32 | </head> |
| 33 | <body> |
| 34 | |
| 35 | <!-- landing: primero se abre la carpeta --> |
| 36 | <div id="landing"> |
| 37 | <div class="l-inner"> |
| 38 | <img src="img/elffuss-code.svg" alt="Elffuss Code" class="hero"> |
| 39 | <h1><b>Elffuss</b> Code</h1> |
| 40 | <p class="tag">Abre tu carpeta de código y programa con una elfa al lado.<br> |
| 41 | Editor tipo VS Code + agente <b>en tu navegador</b>. Nada sale de tu máquina. 😉</p> |
| 42 | <button id="open-project">📁 Abrir carpeta de código</button> |
| 43 | <button id="reopen-project" class="ghost" hidden></button> |
| 44 | <button id="try-browser" class="ghost" hidden>Probar en el navegador (sin carpeta)</button> |
| 45 | <div id="resume-clone" class="resume-clone" hidden> |
| 46 | <span class="rc-text"></span> |
| 47 | <button id="resume-clone-btn">Reanudar</button> |
| 48 | <button id="discard-clone-btn" class="ghost">Descartar</button> |
| 49 | </div> |
| 50 | <div class="clone-row"> |
| 51 | <span class="clone-or">o</span> |
| 52 | <input id="clone-url" type="text" placeholder="pega la URL de un repo público (GitHub/Bitbucket)…" autocomplete="off" spellcheck="false"> |
| 53 | <button id="clone-btn">Descargar y abrir</button> |
| 54 | </div> |
| 55 | <p id="clone-status" class="mini clone-status" role="status" aria-live="polite"></p> |
| 56 | <p class="mini">Chrome/Edge · File System Access · modelo local WebGPU</p> |
| 57 | </div> |
| 58 | </div> |
| 59 | |
| 60 | <!-- IDE --> |
| 61 | <div id="ide" hidden> |
| 62 | <header> |
| 63 | <div class="brand"><img src="img/elffuss-code.svg" alt=""><b>Elffuss Code</b> |
| 64 | <span id="project-name" class="proj"></span><span id="build" class="proj">__BUILD__</span></div> |
| 65 | <nav id="menubar"> |
| 66 | <button data-menu="file">File</button> |
| 67 | <button data-menu="edit">Edit</button> |
| 68 | <button data-menu="view">View</button> |
| 69 | <button data-menu="git">Git</button> |
| 70 | </nav> |
| 71 | <!-- La búsqueda, siempre a la vista (como el «command center» de VS Code): |
| 72 | al pulsarla o escribir, abre la paleta justo debajo. --> |
| 73 | <button id="top-search" type="button" class="top-search" aria-keyshortcuts="Meta+P Control+P"> |
| 74 | <span class="ts-ico" aria-hidden="true"></span><span class="ts-txt">Buscar archivos, símbolos y comandos</span><kbd class="ts-kbd" aria-hidden="true">⌘P</kbd> |
| 75 | </button> |
| 76 | <div class="controls"> |
| 77 | <button id="btn-drawer" class="ghost icon-btn" type="button" aria-expanded="false" aria-controls="sidebar" title="Archivos y herramientas" aria-label="Archivos y herramientas">☰</button> |
| 78 | <button id="git-branch" class="chip" title="rama actual" hidden></button> |
| 79 | <button id="model-dot" type="button" class="dot off" title="modelo" aria-label="modelo"></button> |
| 80 | <select id="model-select" hidden></select> |
| 81 | <button id="disk-chip" class="chip" hidden></button> |
| 82 | <button id="speed-chip" class="chip" hidden title="velocidad de esta máquina"></button> |
| 83 | <button id="btn-history" class="ghost icon-btn" title="Historial de conversaciones"></button> |
| 84 | <button id="btn-settings" class="ghost icon-btn" title="Ajustes, modelo y API keys"></button> |
| 85 | </div> |
| 86 | </header> |
| 87 | <!-- Fuera del header: dentro heredaba su overflow y recortaba la gráfica. --> |
| 88 | <div id="speed-panel" hidden></div> |
| 89 | <div id="settings-panel" hidden></div> |
| 90 | <div id="topmenu" hidden></div> |
| 91 | <div id="palette" hidden> |
| 92 | <input id="pal-input" autocomplete="off" spellcheck="false" |
| 93 | placeholder="Buscar archivos por nombre (: para ir a línea, @ para símbolo, > para comandos)"> |
| 94 | <div id="pal-list"></div> |
| 95 | </div> |
| 96 | <main> |
| 97 | <nav id="activity"> |
| 98 | <button id="act-files" class="on" title="Explorador"></button> |
| 99 | <button id="act-arch" title="Arquitectura (grafo de dependencias)"></button> |
| 100 | <button id="act-city" title="Ciudad 3D"></button> |
| 101 | <button id="act-term" title="Terminal (Ctrl+`)"></button> |
| 102 | <button id="act-skills" title="Skills"></button> |
| 103 | <button id="act-ext" title="Extensiones"></button> |
| 104 | <button id="act-settings" title="Ajustes y modelo"></button> |
| 105 | <button id="act-mind" title="Mente de Elffuss — cerebro autónomo" aria-label="Mente de Elffuss"><img src="img/elffuss-code.svg" alt=""></button> |
| 106 | </nav> |
| 107 | <aside id="sidebar"> |
| 108 | <div id="explorer-head">EXPLORER<span id="explorer-proj"></span></div> |
| 109 | <div id="tree"></div> |
| 110 | </aside> |
| 111 | <section id="editor-wrap"> |
| 112 | <div id="tabs-bar"></div> |
| 113 | <div id="editor"></div> |
| 114 | <div id="view-overlay" hidden> |
| 115 | <button id="view-close" title="cerrar">✕</button> |
| 116 | <div id="view-body"></div> |
| 117 | </div> |
| 118 | <div id="terminal-panel" hidden> |
| 119 | <div id="term-resize" title="arrastra para redimensionar"></div> |
| 120 | <div id="term-head"> |
| 121 | <span class="term-title">TERMINAL</span> |
| 122 | <span id="term-caps"></span> |
| 123 | <button id="term-clear" class="term-btn" title="limpiar la pantalla del terminal">limpiar</button> |
| 124 | <button id="term-close" class="term-btn" title="cerrar (Ctrl+`)">✕</button> |
| 125 | </div> |
| 126 | <div id="terminal-host"></div> |
| 127 | </div> |
| 128 | <div id="statusbar" role="status" aria-live="polite"></div> |
| 129 | </section> |
| 130 | <section id="chat"> |
| 131 | <button type="button" id="btn-ancho" title="Ensanchar el chat a toda la ventana (vuelve a pulsar para recuperar el editor)">⇔</button> |
| 132 | <div id="conv-tabs"></div> |
| 133 | <div id="history-panel" hidden></div> |
| 134 | <div id="chat-log" role="log" aria-live="polite" aria-relevant="additions" aria-label="Conversación"></div> |
| 135 | <div id="menu" hidden></div> |
| 136 | <div id="composer-wrap"> |
| 137 | <div id="ctx-meter" title="contexto acumulado en la conversación"> |
| 138 | <span id="ctx-text">ctx 0 / 6k</span> |
| 139 | <div class="ctx-track"><div id="ctx-bar"></div></div> |
| 140 | </div> |
| 141 | <div id="attach-chips" role="list" hidden></div> |
| 142 | <form id="composer"> |
| 143 | <button type="button" id="btn-plus" class="cbtn" title="Adjuntar archivo del proyecto (@)"></button> |
| 144 | <button type="button" id="btn-slash" class="cbtn" title="Comandos"></button> |
| 145 | <textarea id="prompt" rows="3" autocomplete="off" placeholder="Escribe aquí lo que quieres. Enter envía · Mayús+Enter salta de línea · @ para adjuntar un archivo"></textarea> |
| 146 | <div id="modos"> |
| 147 | <button type="button" id="btn-modos" class="cbtn" title="Modos de trabajo">⚙︎ Modos ▾</button> |
| 148 | <div id="modos-menu" hidden> |
| 149 | <button type="button" id="btn-autoedit" class="cbtn autoedit on" title="Editar archivos automáticamente"><span class="ae-ico"></></span> <span class="ae-txt">Auto</span></button> |
| 150 | <button type="button" id="btn-goal" class="cbtn goal" title="Modo Objetivo: descompone el mensaje en tareas y las ejecuta una a una (planificador + ejecutor)">🎯 <span class="goal-txt">Goal</span></button> |
| 151 | <button type="button" id="btn-hardwork" class="cbtn hardwork" title="Hard Work (RLM): lee tu proyecto ENTERO por partes — audita, resume o busca en código que no cabe en el modelo. Tarda, pero lo abarca todo.">⛏ <span class="hw-txt">Hard Work</span></button> |
| 152 | </div> |
| 153 | </div> |
| 154 | <button type="submit" id="btn-send" title="Enviar"></button> |
| 155 | </form> |
| 156 | <div id="send-status" class="sr-only" role="status" aria-live="polite"></div> |
| 157 | </div> |
| 158 | </section> |
| 159 | </main> |
| 160 | </div> |
| 161 | |
| 162 | <button id="code-flip" title="cambiar entre chat y editor"></button> |
| 163 | |
| 164 | <div id="model-progress" role="status" aria-live="polite" hidden> |
| 165 | <img src="img/elffuss-code.svg" alt=""> |
| 166 | <div class="mp-body"> |
| 167 | <span id="model-progress-text">Preparando el cerebro local…</span> |
| 168 | <div class="track"><div id="model-bar"></div></div> |
| 169 | </div> |
| 170 | </div> |
| 171 | |
| 172 | <script type="module" src="js/main.js"></script> |
| 173 | </body> |
| 174 | </html> |