const StrataUI=(()=>{ const esc=v=>String(v??'').replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c])); function render(){document.querySelector('#view').innerHTML='

Strata

Flash-Next als native Chat-Laufzeit hinter dem bestehenden Athena-Endpunkt. Zwei GPUs, Experten in RAM/SSD, MTP auf der zweiten GPU. Kein zusätzlicher öffentlicher API-Port.

Chat-Profile öffnen →';refresh();} async function api(path='',body){const r=await fetch('/api/v1/strata-runtime'+path,body!==undefined?{method:'POST',headers:{'Content-Type':'application/json','X-Athena-Deck':'1'},body:JSON.stringify(body)}:{});const d=await r.json();if(!r.ok)throw Error(d.error);return d;} async function refresh(){const root=document.querySelector('#strata-state');if(!root)return;try{ const [d,c]=await Promise.all([api(),fetch('/api/v1/catalog').then(r=>r.json())]);if(!root.isConnected)return; root.innerHTML=`

Strata ${esc(d.version)}

${d.installed?'Installiert':'Einrichtung erforderlich'} · ${esc(d.revision?.slice(0,12))}

${esc(d.job?.phase||'Kein Einrichtungsauftrag aktiv.')}

CPU-Vision: ${d.vision?'bereit':'Encoder unter CPU-Vision vorbereiten installieren'}. Ein Chat-Slot, Kontext bis 524288 (oberhalb 262144 mit YaRN ×2). Große Kontexte benötigen zusätzlichen RAM.

${Object.entries(d.models).map(([q,ready])=>`${esc(q)}: ${ready?'vorbereitet':'Paket fehlt'}`).join(' · ')}

${d.job?.state==='running'?'':''}`; for(const [id,path,body] of [['strata-install','/install',()=>({})],['strata-prepare','/prepare',()=>({model_id:document.querySelector('#strata-model').value})],['strata-vision','/vision',()=>({})],['strata-cancel','/cancel',()=>({})]])document.querySelector('#'+id)?.addEventListener('click',async event=>{event.target.disabled=true;try{await api(path,body());refresh();}catch(e){document.querySelector('#strata-message').textContent=e.message;event.target.disabled=false;}}); }catch(e){if(root.isConnected)root.textContent=e.message;}finally{setTimeout(()=>{if(root.isConnected)refresh();},4000);}} return {render}; })();