Eras Expert domain context: - Full Heizkostenabrechnung business model (Kunde>Objekte>Nutzeinheiten>Geraete) - Known PK/FK mappings: kunden.Kundennummer, objekte.KundenID, etc. - Correct JOIN example in SCHEMA prompt - PA knows domain hierarchy for better job formulation Iterative plan-execute in ExpertNode: - DESCRIBE queries execute first, results injected into re-plan - Re-plan uses actual column names from DESCRIBE - Eliminates "Unknown column" errors on first query Frontend: - Node inspector: per-node cards with model, tokens, progress, last event - Graph switcher buttons in top bar - Clear button in top bar - Nodes panel 300px wide - WS reconnect on 1006 (deploy) without showing login - Model info emitted on context HUD events Domain context test: 21/21 (hierarchy, JOINs, FK, PA job quality) Default graph: v4-eras Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
86 lines
2.7 KiB
HTML
86 lines
2.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>cog</title>
|
|
<link rel="stylesheet" href="/static/style.css?v=15">
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/cytoscape/3.28.1/cytoscape.min.js"></script>
|
|
<script src="https://unpkg.com/webcola@3.4.0/WebCola/cola.min.js"></script>
|
|
<script src="https://unpkg.com/cytoscape-cola@2.5.1/cytoscape-cola.js"></script>
|
|
</head>
|
|
<body>
|
|
|
|
<!-- Top bar -->
|
|
<div id="top-bar">
|
|
<h1>cog</h1>
|
|
<div id="test-status"></div>
|
|
<div style="flex:1"></div>
|
|
<div id="graph-switcher"></div>
|
|
<button onclick="clearSession()" class="btn-top" title="Clear session">Clear</button>
|
|
<div id="status">disconnected</div>
|
|
</div>
|
|
|
|
<!-- Middle row: Workspace | Node Detail | Graph -->
|
|
<div id="middle-row">
|
|
<div class="panel workspace-panel">
|
|
<div class="panel-header work-h">Workspace</div>
|
|
<div id="workspace-body"><span class="aw-empty">no controls</span></div>
|
|
</div>
|
|
<div class="panel detail-panel">
|
|
<div class="panel-header detail-h">Nodes</div>
|
|
<div id="node-metrics"></div>
|
|
</div>
|
|
<div class="panel graph-panel">
|
|
<div class="panel-header graph-h">Graph
|
|
<span class="graph-btns">
|
|
<button onclick="toggleDrag()" id="btn-drag" title="Drag">drag</button>
|
|
<button onclick="togglePan()" id="btn-pan" title="Pan">pan</button>
|
|
</span>
|
|
</div>
|
|
<div id="pipeline-graph"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Bottom row: Chat | Awareness | Trace -->
|
|
<div id="bottom-row">
|
|
<div class="panel chat-panel">
|
|
<div class="panel-header chat-h">Chat</div>
|
|
<div id="messages"></div>
|
|
<div id="input-bar">
|
|
<input id="input" placeholder="Type a message..." autocomplete="off">
|
|
<button onclick="send()">Send</button>
|
|
</div>
|
|
</div>
|
|
<div class="panel awareness-panel">
|
|
<div class="panel-header aware-h">Awareness</div>
|
|
<div id="awareness">
|
|
<section class="aw-section">
|
|
<h3 class="aw-title">State</h3>
|
|
<div class="aw-body" id="aw-state-body"><span class="aw-empty">waiting...</span></div>
|
|
</section>
|
|
<section class="aw-section">
|
|
<h3 class="aw-title">Sensors</h3>
|
|
<div class="aw-body" id="aw-sensor-body"><span class="aw-empty">waiting...</span></div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
<div class="panel trace-panel">
|
|
<div class="panel-header trace-h">Trace</div>
|
|
<div id="trace"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Login overlay -->
|
|
<div id="login-overlay" style="display:none">
|
|
<div class="login-card">
|
|
<h2>cog</h2>
|
|
<p>Please log in to continue</p>
|
|
<button onclick="startLogin()">Log in with Zitadel</button>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="module" src="/static/js/main.js?v=15"></script>
|
|
</body>
|
|
</html>
|