interplane.Get Omega
Read in your language

aien-sovereign-core-mv

AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.

Brought by drakestapleton

branch main Branches Tags History

aien-sovereign-core-mv / crates / spark-cockpit-rs / static / index.html

363 lines · 20035 bytes Raw Blame History
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.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
6 <meta name="color-scheme" content="dark light">
7 <meta name="theme-color" content="#141311">
8 <title>ALLEN | Spark harness</title>
9 <link rel="manifest" href="/manifest.json">
10 <link rel="apple-touch-icon" href="/icon-192.png">
11 <link rel="stylesheet" href="/style.css">
12 <script>
13 if ("serviceWorker" in navigator) {
14 window.addEventListener("load", () => {
15 navigator.serviceWorker.register("/sw.js").catch(() => {});
16 });
17 }
18 </script>
19</head>
20<body class="dark-theme">
21 <div class="muse-app">
22 <!-- Left navigation rail. Off canvas under 820 px; the menu button in the header opens it. -->
23 <div class="sidebar-backdrop" id="sidebar-backdrop"></div>
24 <aside class="muse-sidebar" id="muse-sidebar">
25 <div class="sidebar-header">
26 <div class="agent-identity" id="sidebar-brand">
27 <div class="avatar-ring">
28 <img src="/avatar.jpg" alt="ALLEN" class="agent-avatar" onerror="this.src='/icon-192.png'">
29 <span class="online-indicator"></span>
30 </div>
31 <div class="agent-labels">
32 <span class="agent-name">ALLEN</span>
33 <span class="agent-subtitle">Spark harness</span>
34 </div>
35 </div>
36 <button class="icon-btn new-chat-btn" id="btn-new-chat" title="New Thread">
37 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 5v14M5 12h14"/></svg>
38 </button>
39 </div>
40
41 <!-- Main Navigation Modules -->
42 <nav class="sidebar-nav">
43 <button class="nav-item active" data-view="chat" id="nav-chat">
44 <svg class="nav-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>
45 <span class="nav-label">Chat</span>
46 </button>
47 <button class="nav-item" data-view="feed" id="nav-feed">
48 <svg class="nav-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M4 11a9 9 0 0 1 9 9M4 4a16 16 0 0 1 16 16"/><circle cx="5" cy="19" r="1"/></svg>
49 <span class="nav-label">Feed</span>
50 <span class="nav-badge" id="feed-badge" style="display:none;">0</span>
51 </button>
52 <button class="nav-item" data-view="goals" id="nav-goals">
53 <svg class="nav-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><circle cx="12" cy="12" r="6"/><circle cx="12" cy="12" r="2"/></svg>
54 <span class="nav-label">Goals</span>
55 <span class="nav-badge" id="goals-badge">0</span>
56 </button>
57 <button class="nav-item" data-view="artifacts" id="nav-artifacts">
58 <svg class="nav-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polygon points="12 2 2 7 12 12 22 7 12 2"/><polyline points="2 17 12 22 22 17"/><polyline points="2 12 12 17 22 12"/></svg>
59 <span class="nav-label">Artifacts</span>
60 <span class="nav-badge" id="artifacts-badge">0</span>
61 </button>
62 <button class="nav-item" data-view="memory" id="nav-memory">
63 <svg class="nav-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 2a7 7 0 0 0-7 7c0 2.38 1.19 4.47 3 5.74V17a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2v-2.26c1.81-1.27 3-3.36 3-5.74a7 7 0 0 0-7-7zM9 21h6"/></svg>
64 <span class="nav-label">Memory</span>
65 </button>
66 <button class="nav-item" data-view="terminal" id="nav-terminal">
67 <svg class="nav-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="4 17 10 11 4 5"/><line x1="12" y1="19" x2="20" y2="19"/></svg>
68 <span class="nav-label">Terminal</span>
69 </button>
70 </nav>
71
72 <!-- Side Chats Section (Recent Conversations) -->
73 <div class="sidebar-section side-chats-section">
74 <div class="section-title">SIDE CHATS</div>
75 <div class="threads-list" id="threads-list">
76 <div class="thread-item active" data-thread-id="main">
77 <span class="thread-title">Primary Session</span>
78 <span class="thread-time">Live</span>
79 </div>
80 </div>
81 </div>
82
83 <!-- Sidebar footer: machine readings (shown only once read) and the theme switch -->
84 <div class="sidebar-footer">
85 <div class="system-pills" id="system-pills" hidden>
86 <div class="sys-pill" id="pill-gpu" title="GB10 temperature, read from the driver every 3 seconds">
87 <span class="pill-dot"></span>
88 <span class="pill-text" id="gpu-temp"></span>
89 </div>
90 <div class="sys-pill" id="pill-ram" title="Memory in use, read from the kernel every 3 seconds">
91 <span class="pill-text" id="ram-used"></span>
92 </div>
93 </div>
94 <div class="footer-actions">
95 <button class="icon-btn theme-toggle" id="btn-theme-toggle" title="Toggle Theme">
96 <svg class="icon-sun" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg>
97 <svg class="icon-moon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>
98 </button>
99 </div>
100 </div>
101 </aside>
102
103 <!-- Main Workspace Stage -->
104 <main class="muse-main">
105 <!-- Top Stage Bar -->
106 <header class="stage-header">
107 <div class="stage-left">
108 <button class="icon-btn menu-toggle" id="btn-sidebar-toggle" title="Toggle Sidebar">
109 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="18" x2="21" y2="18"/></svg>
110 </button>
111 <div class="agent-status-card">
112 <div class="status-avatar-wrap">
113 <img src="/avatar.jpg" alt="ALLEN" class="status-avatar" onerror="this.src='/icon-192.png'">
114 <span class="status-pulse-dot" id="status-dot"></span>
115 </div>
116 <div class="status-text-wrap">
117 <div class="status-title-row">
118 <span class="status-agent-name">ALLEN</span>
119 <span class="status-model-badge" id="seat-model-badge" title="The model the local seat reports it is serving">seat: reading</span>
120 </div>
121 <div class="transparency-status-pill" id="agent-status-pill">
122 <span class="pulse-indicator"></span>
123 <span class="status-phrase" id="status-phrase">Ready</span>
124 </div>
125 </div>
126 </div>
127 </div>
128
129 <div class="stage-actions">
130 <button class="stage-btn" id="btn-approvals-queue" title="Approvals Queue">
131 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>
132 <span>Approvals</span>
133 <span class="action-count-badge" id="approvals-count-badge">0</span>
134 </button>
135 <button class="stage-btn" id="btn-toggle-artifacts-drawer" title="Toggle Workspace Drawer">
136 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"/><line x1="9" y1="3" x2="9" y2="21"/></svg>
137 <span>Workspace</span>
138 </button>
139 <button class="icon-btn" id="btn-clear-chat" title="Clear Thread">
140 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="3 6 5 6 21 6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/></svg>
141 </button>
142 </div>
143 </header>
144
145 <!-- View Containers -->
146 <div class="views-viewport">
147 <!-- VIEW 1: Chat Stream (Default) -->
148 <section class="muse-view active" id="view-chat">
149 <div class="chat-scroll-area" id="chat-scroll-area">
150 <!-- Hero welcome banner shown when chat is fresh -->
151 <div class="chat-hero" id="chat-hero">
152 <div class="hero-logo-wrap">
153 <img src="/avatar.jpg" alt="ALLEN" class="hero-logo" onerror="this.src='/icon-192.png'">
154 </div>
155 <h1 class="hero-greeting" id="hero-greeting">ALLEN is ready</h1>
156 <p class="hero-sub">Give an instruction below. ALLEN runs it on this Spark, keeps goals, and asks here before anything that needs your approval. What it is working with right now:</p>
157
158 <!-- Live state. Every figure is read from the machine when the page loads; nothing here is typed in. -->
159 <div class="hero-live" id="hero-live">
160 <div class="live-card" id="live-card-seat">
161 <span class="live-label">Model seat</span>
162 <span class="live-value" id="live-seat">reading</span>
163 <span class="live-note">what the local seat says it is serving</span>
164 </div>
165 <div class="live-card" id="live-card-approvals">
166 <span class="live-label">Waiting on you</span>
167 <span class="live-value tabular-nums" id="live-approvals">reading</span>
168 <span class="live-note">approvals ALLEN cannot pass without you</span>
169 </div>
170 <div class="live-card" id="live-card-goals">
171 <span class="live-label">Goals</span>
172 <span class="live-value tabular-nums" id="live-goals">reading</span>
173 <span class="live-note">objectives on the goals deck</span>
174 </div>
175 <div class="live-card live-card-judge" id="live-card-judge">
176 <span class="live-label">Spark judge, sovereign core</span>
177 <span class="live-value" id="live-judge">reading</span>
178 <span class="live-note" id="live-judge-note">newest bundle on this machine</span>
179 </div>
180 </div>
181
182 <div class="hero-suggestions">
183 <button class="suggestion-chip" data-prompt="How warm is the GB10 right now, and how much of the unified memory is in use?">
184 <span class="chip-text">How is the machine doing?</span>
185 </button>
186 <button class="suggestion-chip" data-prompt="List the active goals and say which milestone each one is on.">
187 <span class="chip-text">Where are the goals?</span>
188 </button>
189 <button class="suggestion-chip" data-prompt="Show the newest entries in the improvement ledger and what each one changed.">
190 <span class="chip-text">What changed lately?</span>
191 </button>
192 <button class="suggestion-chip" data-prompt="Search the aien-lessons memory for lessons that apply to the current goals.">
193 <span class="chip-text">What have I learned?</span>
194 </button>
195 </div>
196 </div>
197
198 <!-- Messages List -->
199 <div class="messages-list" id="messages-list"></div>
200 </div>
201
202 <!-- Floating Prompt Capsule (Meta Muse Input Bar) -->
203 <div class="prompt-capsule-wrapper">
204 <div class="prompt-capsule">
205 <button class="capsule-tool-btn" id="btn-attach" title="Attach context or file">
206 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"/></svg>
207 </button>
208 <textarea class="capsule-textarea" id="chat-input" placeholder="Ask ALLEN, or give an instruction" rows="1"></textarea>
209 <div class="capsule-right-actions">
210 <button class="capsule-tool-btn" id="btn-voice-dictate" title="Dictation">
211 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"/><path d="M19 10v2a7 7 0 0 1-14 0v-2"/><line x1="12" y1="19" x2="12" y2="23"/><line x1="8" y1="23" x2="16" y2="23"/></svg>
212 </button>
213 <button class="send-circle-btn" id="btn-send" title="Send message (Enter)">
214 <svg viewBox="0 0 24 24" fill="currentColor"><path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/></svg>
215 </button>
216 </div>
217 </div>
218 <div class="prompt-meta-note">Runs on this Spark. The figures above are read from the machine, not typed in.</div>
219 </div>
220 </section>
221
222 <!-- VIEW 2: Proactive Feed -->
223 <section class="muse-view" id="view-feed">
224 <div class="view-content-wrapper">
225 <div class="view-header-row">
226 <div>
227 <h2 class="view-heading">Feed</h2>
228 <p class="view-subheading">What ALLEN noticed, what is pending, and what finished in the background.</p>
229 </div>
230 <button class="stage-btn" id="btn-refresh-feed">Refresh Feed</button>
231 </div>
232 <div class="feed-grid" id="feed-grid"></div>
233 </div>
234 </section>
235
236 <!-- VIEW 3: Goals Deck -->
237 <section class="muse-view" id="view-goals">
238 <div class="view-content-wrapper">
239 <div class="view-header-row">
240 <div>
241 <h2 class="view-heading">Goals</h2>
242 <p class="view-subheading">Multi-step objectives ALLEN is carrying, with their milestones.</p>
243 </div>
244 <button class="stage-btn primary" id="btn-open-new-goal-modal">+ New Goal</button>
245 </div>
246 <div class="goals-container" id="goals-container"></div>
247 </div>
248 </section>
249
250 <!-- VIEW 4: Artifacts Library -->
251 <section class="muse-view" id="view-artifacts">
252 <div class="view-content-wrapper">
253 <div class="view-header-row">
254 <div>
255 <h2 class="view-heading">Artifacts</h2>
256 <p class="view-subheading">Code, reports, diffs and documents ALLEN produced while working.</p>
257 </div>
258 <button class="stage-btn" id="btn-refresh-artifacts">Refresh</button>
259 </div>
260 <div class="artifacts-grid" id="artifacts-grid"></div>
261 </div>
262 </section>
263
264 <!-- VIEW 5: Memory Inspector (Spark Cortex) -->
265 <section class="muse-view" id="view-memory">
266 <div class="view-content-wrapper">
267 <div class="view-header-row">
268 <div>
269 <h2 class="view-heading">Memory</h2>
270 <p class="view-subheading">What ALLEN remembers: your standing preferences and the lessons it has kept.</p>
271 </div>
272 <div class="search-wrap">
273 <input type="text" class="search-input" id="memory-search-input" placeholder="Search memory">
274 <button class="stage-btn" id="btn-search-memory">Search</button>
275 </div>
276 </div>
277 <div class="memory-grid" id="memory-grid"></div>
278 </div>
279 </section>
280
281 <!-- VIEW 6: Interactive Terminal -->
282 <section class="muse-view" id="view-terminal">
283 <div class="terminal-container">
284 <div class="terminal-bar">
285 <span class="term-title">SPARK TERMINAL</span>
286 <span class="term-status" id="term-status-indicator">Connected</span>
287 <button class="stage-btn" id="btn-term-clear">Clear</button>
288 </div>
289 <div class="term-scroll" id="term-output"></div>
290 <div class="term-input-line">
291 <span class="term-prompt">drakestapleton@spark:~$</span>
292 <input type="text" class="term-cmd-input" id="term-input" autocomplete="off" spellcheck="false">
293 </div>
294 </div>
295 </section>
296 </div>
297 </main>
298
299 <!-- Right Workspace / Artifacts / Approvals Drawer -->
300 <aside class="muse-drawer" id="muse-drawer">
301 <div class="drawer-header">
302 <div class="drawer-tabs">
303 <button class="drawer-tab active" data-drawer-tab="artifact">Artifact</button>
304 <button class="drawer-tab" data-drawer-tab="approvals">Approvals <span class="badge" id="drawer-appr-badge">0</span></button>
305 <button class="drawer-tab" data-drawer-tab="activity">Activity Log</button>
306 </div>
307 <button class="icon-btn" id="btn-close-drawer" title="Close Workspace">
308 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
309 </button>
310 </div>
311
312 <div class="drawer-body">
313 <!-- Tab 1: Artifact Viewer -->
314 <div class="drawer-pane active" id="drawer-pane-artifact">
315 <div class="artifact-empty-state" id="artifact-empty-state">
316 <svg class="empty-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><polygon points="12 2 2 7 12 12 22 7 12 2"/><polyline points="2 17 12 22 22 17"/><polyline points="2 12 12 17 22 12"/></svg>
317 <p>Nothing selected. Ask ALLEN for code, a diff or a document and it appears here.</p>
318 </div>
319 <div class="artifact-content-viewer" id="artifact-content-viewer" style="display: none;">
320 <div class="artifact-title-bar">
321 <span class="artifact-filename" id="artifact-active-filename">artifact.rs</span>
322 <button class="stage-btn" id="btn-copy-artifact">Copy</button>
323 </div>
324 <pre class="artifact-pre"><code id="artifact-active-code"></code></pre>
325 </div>
326 </div>
327
328 <!-- Tab 2: Approvals Queue -->
329 <div class="drawer-pane" id="drawer-pane-approvals">
330 <div class="approvals-list" id="drawer-approvals-list"></div>
331 </div>
332
333 <!-- Tab 3: Activity Log -->
334 <div class="drawer-pane" id="drawer-pane-activity">
335 <div class="activity-timeline" id="activity-timeline"></div>
336 </div>
337 </div>
338 </aside>
339 </div>
340
341 <!-- New Goal Modal -->
342 <div class="modal-backdrop" id="modal-new-goal" style="display: none;">
343 <div class="modal-card">
344 <div class="modal-card-header">
345 <h3>Create New Objective</h3>
346 <button class="icon-btn" onclick="document.getElementById('modal-new-goal').style.display='none'">×</button>
347 </div>
348 <div class="modal-card-body">
349 <label class="modal-label">Objective Title</label>
350 <input type="text" class="modal-input" id="goal-input-title" placeholder="e.g. Optimize BF16 Paged Attention Kernel">
351 <label class="modal-label">Milestones (comma separated)</label>
352 <textarea class="modal-textarea" id="goal-input-milestones" placeholder="TMA load pipeline, sm_121 warp specialization, Parity harness verification"></textarea>
353 </div>
354 <div class="modal-card-footer">
355 <button class="stage-btn" onclick="document.getElementById('modal-new-goal').style.display='none'">Cancel</button>
356 <button class="stage-btn primary" id="btn-submit-goal">Create Goal</button>
357 </div>
358 </div>
359 </div>
360
361 <script type="module" src="/app.js"></script>
362</body>
363</html>