Add sovereign-router source: router-server.mjs, kernel-registry, agent-registry, omega-field, MAGMA verbs
931572e verified | <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"/> | |
| <title>SnapKitty Sovereign Router β Mission Control</title> | |
| <style> | |
| * { margin:0; padding:0; box-sizing:border-box; } | |
| body { background:#040408; color:#e8e8f0; font-family:'Courier New',monospace; font-size:13px; height:100vh; display:flex; flex-direction:column; overflow:hidden; } | |
| /* ββ TOP BAR ββ */ | |
| #topbar { background:#0a0a14; border-bottom:1px solid #1e1e2a; padding:8px 16px; display:flex; align-items:center; gap:16px; flex-shrink:0; } | |
| .top-logo { color:#00ff88; font-size:14px; font-weight:700; letter-spacing:0.1em; } | |
| .top-model { font-size:10px; color:#444; letter-spacing:0.15em; } | |
| #worm-head { font-size:10px; color:#0a84ff; font-family:monospace; margin-left:auto; } | |
| .dot { width:8px; height:8px; border-radius:50%; animation:pulse 2s infinite; } | |
| .dot.green { background:#00ff88; } | |
| .dot.gold { background:#ffd700; } | |
| .dot.blue { background:#0a84ff; } | |
| @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} } | |
| /* ββ MAIN GRID ββ */ | |
| #main { flex:1; display:grid; grid-template-columns:280px 1fr 280px; gap:1px; background:#1e1e2a; overflow:hidden; } | |
| .panel { background:#040408; display:flex; flex-direction:column; overflow:hidden; } | |
| .panel-hdr { background:#0a0a14; border-bottom:1px solid #1e1e2a; padding:6px 12px; font-size:10px; color:#444; letter-spacing:0.2em; text-transform:uppercase; display:flex; align-items:center; gap:8px; flex-shrink:0; } | |
| .panel-hdr .ph-dot { width:6px; height:6px; border-radius:50%; } | |
| .panel-body { flex:1; overflow-y:auto; padding:8px; } | |
| /* ββ LEFT β SACM GATE ββ */ | |
| #gate-log { display:flex; flex-direction:column; gap:4px; } | |
| .gate-entry { border:1px solid #1e1e2a; border-radius:3px; padding:6px 8px; font-size:11px; } | |
| .gate-entry.pass { border-color:#00ff8833; background:#00ff8808; } | |
| .gate-entry.block { border-color:#ff453a33; background:#ff453a08; } | |
| .gate-entry.route { border-color:#0a84ff33; background:#0a84ff08; } | |
| .gate-label { font-size:9px; letter-spacing:0.15em; margin-bottom:3px; } | |
| .gate-label.pass { color:#00ff88; } | |
| .gate-label.block { color:#ff453a; } | |
| .gate-label.route { color:#0a84ff; } | |
| .gate-model { color:#ffd700; font-size:10px; } | |
| .gate-reason { color:#666; font-size:10px; } | |
| .gate-time { color:#333; font-size:9px; margin-top:2px; } | |
| /* ββ CENTER β OUTPUT ββ */ | |
| #output { flex:1; overflow-y:auto; padding:12px; white-space:pre-wrap; word-break:break-word; line-height:1.6; color:#c8c8d8; font-size:12px; } | |
| #output .thinking { color:#444; font-style:italic; } | |
| #output .model-tag { color:#0a84ff; font-size:10px; letter-spacing:0.1em; display:block; margin-bottom:8px; } | |
| #output .worm-seal { color:#00ff88; font-size:10px; display:block; margin-top:8px; border-top:1px solid #1e1e2a; padding-top:6px; } | |
| #output .leak-warn { color:#ff453a; font-size:10px; display:block; } | |
| /* ββ RIGHT β KERNEL + WORM ββ */ | |
| #kernel-log { display:flex; flex-direction:column; gap:4px; } | |
| .kernel-entry { border:1px solid #1e1e2a; border-radius:3px; padding:5px 8px; font-size:10px; } | |
| .kernel-entry.active { border-color:#ffd70033; background:#ffd70008; } | |
| .kernel-entry.done { border-color:#00ff8833; } | |
| .kernel-name { color:#ffd700; font-size:10px; margin-bottom:2px; } | |
| .kernel-lang { color:#444; font-size:9px; } | |
| .kernel-status { font-size:9px; } | |
| .kernel-status.done { color:#00ff88; } | |
| .kernel-status.wait { color:#444; } | |
| .kernel-status.run { color:#ffd700; } | |
| #worm-log { display:flex; flex-direction:column; gap:3px; } | |
| .worm-entry-ui { font-size:9px; color:#333; border-bottom:1px solid #0a0a14; padding-bottom:3px; } | |
| .worm-entry-ui .wh { color:#0a84ff; } | |
| /* ββ BOTTOM β INPUT ββ */ | |
| #inputbar { background:#0a0a14; border-top:1px solid #1e1e2a; padding:8px 12px; display:flex; gap:8px; flex-shrink:0; } | |
| #prompt { flex:1; background:#040408; border:1px solid #1e1e2a; border-radius:3px; padding:8px 12px; color:#e8e8f0; font-family:'Courier New',monospace; font-size:13px; outline:none; } | |
| #prompt:focus { border-color:#0a84ff; } | |
| #send-btn { background:#0a84ff; color:#fff; border:none; padding:8px 20px; border-radius:3px; cursor:pointer; font-family:'Courier New',monospace; font-size:12px; font-weight:700; letter-spacing:0.05em; } | |
| #send-btn:hover { background:#2196f3; } | |
| #send-btn:disabled { background:#1e1e2a; color:#444; cursor:not-allowed; } | |
| /* ββ QUICK ROUTES ββ */ | |
| #quickbar { background:#040408; border-top:1px solid #1e1e2a; padding:6px 12px; display:flex; gap:6px; flex-wrap:wrap; flex-shrink:0; } | |
| .qbtn { background:#0a0a14; border:1px solid #1e1e2a; color:#666; padding:3px 10px; border-radius:2px; cursor:pointer; font-size:10px; font-family:'Courier New',monospace; letter-spacing:0.1em; } | |
| .qbtn:hover { border-color:#0a84ff; color:#0a84ff; } | |
| .qbtn.claude { border-color:#e06c7533; color:#e06c75; } | |
| .qbtn.mistral { border-color:#ffd70033; color:#ffd700; } | |
| .qbtn.nova { border-color:#0a84ff33; color:#0a84ff; } | |
| .qbtn.deepseek { border-color:#bf5af233; color:#bf5af2; } | |
| .qbtn.local { border-color:#00ff8833; color:#00ff88; } | |
| /* scrollbars */ | |
| ::-webkit-scrollbar { width:4px; } | |
| ::-webkit-scrollbar-track { background:#040408; } | |
| ::-webkit-scrollbar-thumb { background:#1e1e2a; border-radius:2px; } | |
| </style> | |
| </head> | |
| <body> | |
| <div id="topbar"> | |
| <div class="top-logo">⬑ SNAPKITTY SOVEREIGN ROUTER</div> | |
| <div class="top-model">SACM Β· BEDROCK Β· MISTRAL Β· DEEPSEEK R1 Β· LOCAL</div> | |
| <div style="display:flex;gap:8px;align-items:center;margin-left:auto"> | |
| <div class="dot green" id="dot-mistral" title="Mistral"></div> | |
| <div class="dot blue" id="dot-bedrock" title="Bedrock"></div> | |
| <div class="dot gold" id="dot-local" title="Local/Ollama"></div> | |
| <span id="worm-head">WORM: initializing...</span> | |
| </div> | |
| </div> | |
| <div id="main"> | |
| <!-- LEFT: SACM GATE LOG --> | |
| <div class="panel"> | |
| <div class="panel-hdr"> | |
| <div class="ph-dot" style="background:#0a84ff"></div> | |
| SACM GATE | |
| </div> | |
| <div class="panel-body"> | |
| <div id="gate-log"> | |
| <div class="gate-entry route"> | |
| <div class="gate-label route">READY</div> | |
| <div class="gate-reason">Pattern match engine idle</div> | |
| <div class="gate-time">Awaiting input...</div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- CENTER: OUTPUT --> | |
| <div class="panel"> | |
| <div class="panel-hdr"> | |
| <div class="ph-dot" style="background:#00ff88"></div> | |
| OUTPUT STREAM | |
| <span id="model-indicator" style="color:#ffd700;margin-left:auto;font-size:10px"></span> | |
| </div> | |
| <div id="output"> | |
| <span class="thinking">SnapKitty Sovereign Router β Mission Control | |
| Route any task. The SACM gate decides which engine handles it. | |
| Watch the left panel for routing decisions, right panel for kernel + WORM activity. | |
| Quick routes below show which engine handles each task type.</span> | |
| </div> | |
| </div> | |
| <!-- RIGHT: KERNEL + WORM --> | |
| <div class="panel" style="display:flex;flex-direction:column"> | |
| <div class="panel-hdr" style="flex-shrink:0"> | |
| <div class="ph-dot" style="background:#ffd700"></div> | |
| KERNEL CHAIN | |
| </div> | |
| <div class="panel-body" style="flex:0 0 auto;max-height:50%"> | |
| <div id="kernel-log"> | |
| <div class="kernel-entry"> | |
| <div class="kernel-name">DFA ENGINE</div> | |
| <div class="kernel-lang">JavaScript Β· O(n) Β· ReDoS-immune</div> | |
| <div class="kernel-status wait">β idle</div> | |
| </div> | |
| <div class="kernel-entry"> | |
| <div class="kernel-name">ROUTE-DISPATCH.REXX</div> | |
| <div class="kernel-lang">REXX Β· 3-pass pattern match</div> | |
| <div class="kernel-status wait">β idle</div> | |
| </div> | |
| <div class="kernel-entry"> | |
| <div class="kernel-name">SOVEREIGN-GLUE.REXX</div> | |
| <div class="kernel-lang">REXX Β· domain β kernel chain</div> | |
| <div class="kernel-status wait">β idle</div> | |
| </div> | |
| <div class="kernel-entry"> | |
| <div class="kernel-name">CARTO PROLOG</div> | |
| <div class="kernel-lang">SWI-Prolog Β· Horn clauses Β· law</div> | |
| <div class="kernel-status wait">β idle</div> | |
| </div> | |
| <div class="kernel-entry"> | |
| <div class="kernel-name">ERE VERIFY</div> | |
| <div class="kernel-lang">5-pass Β· PASS/QUARANTINE/REJECT</div> | |
| <div class="kernel-status wait">β idle</div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="panel-hdr" style="flex-shrink:0;border-top:1px solid #1e1e2a"> | |
| <div class="ph-dot" style="background:#00ff88"></div> | |
| WORM CHAIN | |
| </div> | |
| <div class="panel-body" style="flex:1"> | |
| <div id="worm-log"> | |
| <div class="worm-entry-ui"> | |
| <span class="wh">GENESIS</span> Β· chain initialized Β· awaiting first seal | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div id="quickbar"> | |
| <span style="color:#333;font-size:10px;align-self:center">QUICK ROUTE:</span> | |
| <button class="qbtn claude" onclick="send('explain the sovereign tick runtime architecture')">CLAUDE β reasoning</button> | |
| <button class="qbtn mistral" onclick="send('write a python function to sort a list')">MISTRAL β code</button> | |
| <button class="qbtn nova" onclick="send('what is the latest bitcoin market trend')">NOVA β market</button> | |
| <button class="qbtn deepseek" onclick="send('prove by induction the sum of squares formula')">DEEPSEEK R1 β math</button> | |
| <button class="qbtn local" onclick="send('use our local model to explain WORM chain')">LOCAL β nemotron</button> | |
| <button class="qbtn" onclick="send('define the word sovereign')">DICT β define</button> | |
| <button class="qbtn" onclick="send('write a research paper about the SACM architecture')">DEVTRIAL β paper</button> | |
| </div> | |
| <div id="inputbar"> | |
| <input id="prompt" type="text" placeholder="Route any task through the sovereign stack..." autofocus | |
| onkeydown="if(event.key==='Enter')send()"/> | |
| <button id="send-btn" onclick="send()">⬑ ROUTE</button> | |
| </div> | |
| <script> | |
| </script> | |
| </body> | |
| </html> | |