@evomap/evolver 1.80.7 → 1.80.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.zh-CN.md +18 -11
- package/assets/gep/candidates.jsonl +3 -2
- package/index.js +22 -1
- package/package.json +1 -1
- package/src/config.js +5 -0
- package/src/evolve/guards.js +1 -1
- package/src/evolve/pipeline/collect.js +1 -1
- package/src/evolve/pipeline/dispatch.js +1 -1
- package/src/evolve/pipeline/enrich.js +1 -1
- package/src/evolve/pipeline/hub.js +1 -1
- package/src/evolve/pipeline/select.js +1 -1
- package/src/evolve/pipeline/signals.js +1 -1
- package/src/evolve/utils.js +1 -1
- package/src/evolve.js +1 -1
- package/src/gep/.integrity +0 -0
- package/src/gep/a2aProtocol.js +1 -1
- package/src/gep/assetStore.js +59 -5
- package/src/gep/candidateEval.js +1 -1
- package/src/gep/candidates.js +1 -1
- package/src/gep/contentHash.js +1 -1
- package/src/gep/crypto.js +1 -1
- package/src/gep/curriculum.js +1 -1
- package/src/gep/deviceId.js +1 -1
- package/src/gep/envFingerprint.js +1 -1
- package/src/gep/epigenetics.js +1 -0
- package/src/gep/explore.js +1 -1
- package/src/gep/hash.js +1 -0
- package/src/gep/hubReview.js +1 -1
- package/src/gep/hubSearch.js +1 -1
- package/src/gep/hubVerify.js +1 -1
- package/src/gep/integrityCheck.js +1 -1
- package/src/gep/learningSignals.js +1 -1
- package/src/gep/memoryGraph.js +1 -1
- package/src/gep/memoryGraphAdapter.js +1 -1
- package/src/gep/mutation.js +1 -1
- package/src/gep/narrativeMemory.js +1 -1
- package/src/gep/personality.js +1 -1
- package/src/gep/policyCheck.js +1 -1
- package/src/gep/prompt.js +1 -1
- package/src/gep/reflection.js +1 -1
- package/src/gep/selector.js +1 -1
- package/src/gep/shield.js +1 -1
- package/src/gep/skillDistiller.js +1 -1
- package/src/gep/solidify.js +1 -1
- package/src/gep/strategy.js +1 -1
- package/src/gep/taskReceiver.js +7 -2
- package/src/webui/client/clientJs/assets.js +111 -0
- package/src/webui/client/clientJs/bootstrap.js +92 -0
- package/src/webui/client/clientJs/common.js +77 -0
- package/src/webui/client/clientJs/i18n.js +366 -0
- package/src/webui/client/clientJs/index.js +35 -0
- package/src/webui/client/clientJs/interactions.js +351 -0
- package/src/webui/client/clientJs/overview.js +152 -0
- package/src/webui/client/clientJs/personality.js +285 -0
- package/src/webui/client/clientJs/pipelines.js +330 -0
- package/src/webui/client/indexHtml.js +221 -0
- package/src/webui/client/static.js +23 -0
- package/src/webui/client/stylesCss.js +639 -0
- package/src/webui/client/vendor/README.md +15 -0
- package/src/webui/client/vendor/echarts.min.js +45 -0
- package/src/webui/index.js +14 -0
- package/src/webui/observer/assets.js +146 -0
- package/src/webui/observer/index.js +37 -0
- package/src/webui/observer/interactions.js +120 -0
- package/src/webui/observer/jsonl.js +75 -0
- package/src/webui/observer/paths.js +46 -0
- package/src/webui/observer/personality.js +43 -0
- package/src/webui/observer/pipelineEvents.js +58 -0
- package/src/webui/observer/redact.js +63 -0
- package/src/webui/observer/runs.js +356 -0
- package/src/webui/observer/safety.js +57 -0
- package/src/webui/observer/skills.js +70 -0
- package/src/webui/observer/status.js +71 -0
- package/src/webui/server/http.js +138 -0
- package/src/webui/server/routes.js +41 -0
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Brand mark — same 256x256 PNG that ships in evomap/evox-desktop
|
|
4
|
+
// (frontend/src/assets/logo.png), inlined as data: URI so the dashboard
|
|
5
|
+
// stays self-contained (no extra HTTP route, no build step). Original
|
|
6
|
+
// file is 1077 bytes; base64-encoded payload is ~1.4 KB.
|
|
7
|
+
const LOGO_DATA_URI = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAD/ElEQVR42u3UoQEDMQwEwUcJUP/NPlGqCNEOmAZs3T6f7yzQ9HgEEABAAAABAAQAEABAAAABAAQAEABAAAABAAQAEABAAAABAAQAEABAAAABAAQAEABAAAABAAQAEABAAAABAAQAEABAAAABAAQAEABAAAABOO5937/wtgJAYOjCIAAYuygIAAYvCAKA0YuBAGD0YiAAGL4QCABGLwYCgOELgQBg+EIgABi+EAiA4SMEAmD4CIEAGD8iIACGjxAIgPEjAgJg+AiBABg/IiAAho8QCIDxIwICYPyIgAAYPyIgAIaPEAiA8SMCAmD8iIAAGD8iIADGjwgIgPEjAgJg/IiAABg/IiAAxo8ICIDxIwIC4KgRgGYAHDQiEA2AQ0YEogFwwIhANAAOFxEQABCAWgAcLCIQDYBDRQQEAASgFgAHighEA+AwEQEBAAGoBcBBIgLRADhEREAAQABqAXCAiIAAgADUAuDwEAEBAAGoBcDBIQICAAJQC4BDQwQEAASgFgAHhggIAAiAAIAAZALgsBABAQABqAXAQSECAgACIAAgAJkAOCREQABAAAQABCATAAeECAgACIAAgAAIAAjA/QA4HERAAEAABAAEQABAAAQABOBwABwMIiAAIAACAAIgACAAAgACIAAgABcD4FAQAQEAARAAEAABAAEQABAAAQABEAAQAAEAARAAEAABAAEQABAAAQABEAAQAAEAARAAEAABAAEQABAAAQABEAAQAAEAARAAEAABAAEQAbg1fgEAARAAEAABAAEQABAAAQABEAG4On4BAAEQABAAAQABEAAQABGA4+MXABAAAQABEAAQABGAxvgFAARAAEAARABS4xcAEAABAAEQAUiNXwBAAGZFAHrjFwAQAAEAARABSI1fAEAAZkUAeuMXABCAWRGA3vgFAARgVgSgN34BAAGYFQHojV8AQABmRQB64z8TABHA+AUABKAaABHA+OMBEAGMXwBAAKoBEAGMPx4AEcD4BQAEoBoAEcD44wEQAYw/HgARwPjjARABjF8AQACqARABjD8eABHA+OMBEAGMPx4AEcD44wEQAerjzwdABKjffz4AImD8AoBBGL8AiIBhGL8ACIGRGL4AiADGLwAigPELgAhg/AIgBBi+AIgAxi8AQoDhC4AIYPwCIAQYvgCIAMYvAEKA4QuAEGD4AiAEGL4ACAGGLwBCgOELgBhg9AIgBIaPAGD0CAAnY+BPBYBQEPyZABCJgr8QAAJh8LYCAAgAIACAAAACAAgAIACAAAACAAgAIACAAAACAAgAIACAAAACAAgAIACAAAACAAgAIACAAAACAAgAIACAAAACAAgAIAAgAIAAAAIACAAgAMBVP0So0nvkC/TPAAAAAElFTkSuQmCC';
|
|
8
|
+
|
|
9
|
+
// Inline lucide-style SVG icons (24x24, currentColor stroke).
|
|
10
|
+
const ICONS = {
|
|
11
|
+
layout: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="7" height="9" x="3" y="3" rx="1"/><rect width="7" height="5" x="14" y="3" rx="1"/><rect width="7" height="9" x="14" y="12" rx="1"/><rect width="7" height="5" x="3" y="16" rx="1"/></svg>',
|
|
12
|
+
pipeline: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="6" x2="6" y1="3" y2="15"/><circle cx="18" cy="6" r="3"/><circle cx="6" cy="18" r="3"/><path d="M18 9a9 9 0 0 1-9 9"/></svg>',
|
|
13
|
+
package: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m7.5 4.27 9 5.15"/><path d="M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z"/><path d="m3.3 7 8.7 5 8.7-5"/><path d="M12 22V12"/></svg>',
|
|
14
|
+
activity: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.5.5 0 0 1-.96 0L9.68 3.18a.5.5 0 0 0-.96 0l-2.35 8.36A2 2 0 0 1 4.44 13H2"/></svg>',
|
|
15
|
+
brain: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z"/><path d="M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z"/><path d="M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4"/></svg>',
|
|
16
|
+
refresh: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M8 16H3v5"/></svg>',
|
|
17
|
+
sun: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="4"/><path d="M12 2v2"/><path d="M12 20v2"/><path d="m4.93 4.93 1.41 1.41"/><path d="m17.66 17.66 1.41 1.41"/><path d="M2 12h2"/><path d="M20 12h2"/><path d="m6.34 17.66-1.41 1.41"/><path d="m19.07 4.93-1.41 1.41"/></svg>',
|
|
18
|
+
moon: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"/></svg>',
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
// Sidebar items reference an i18n key; the live label is rendered by
|
|
22
|
+
// applyI18nDom() based on current locale.
|
|
23
|
+
const NAV = [
|
|
24
|
+
{ tab: 'overview', icon: 'layout', labelKey: 'nav.overview' },
|
|
25
|
+
{ tab: 'pipelines', icon: 'pipeline', labelKey: 'nav.pipelines' },
|
|
26
|
+
{ tab: 'assets', icon: 'package', labelKey: 'nav.assets' },
|
|
27
|
+
{ tab: 'interactions', icon: 'activity', labelKey: 'nav.interactions' },
|
|
28
|
+
{ tab: 'personality', icon: 'brain', labelKey: 'nav.personality' },
|
|
29
|
+
];
|
|
30
|
+
|
|
31
|
+
function navItem({ tab, icon, labelKey }, idx) {
|
|
32
|
+
const active = idx === 0 ? ' active' : '';
|
|
33
|
+
return `<button class="tab nav-item${active}" data-tab="${tab}">
|
|
34
|
+
<span class="nav-icon">${ICONS[icon]}</span>
|
|
35
|
+
<span class="nav-label" data-i18n="${labelKey}">${labelKey}</span>
|
|
36
|
+
</button>`;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Pre-CSS theme bootstrap. Runs synchronously in <head> so the chosen
|
|
40
|
+
// theme class is set on <html> *before* the stylesheet evaluates, which
|
|
41
|
+
// avoids a flash of the wrong palette on first paint. Reads
|
|
42
|
+
// localStorage 'evolver-theme' (light|dark|system, default system) and
|
|
43
|
+
// adds .dark to <html> if appropriate.
|
|
44
|
+
const THEME_INIT_SCRIPT = `(function(){try{
|
|
45
|
+
var saved = localStorage.getItem('evolver-theme') || 'system';
|
|
46
|
+
var dark = saved === 'dark' || (saved === 'system' && window.matchMedia('(prefers-color-scheme: dark)').matches);
|
|
47
|
+
if (dark) document.documentElement.classList.add('dark');
|
|
48
|
+
}catch(_){}})()`;
|
|
49
|
+
|
|
50
|
+
// Pre-CSS locale bootstrap. Sets <html lang> + data-locale before paint
|
|
51
|
+
// so server-rendered static text doesn't flash English when a Chinese
|
|
52
|
+
// preference is stored. Defaults to English; switches to zh only when
|
|
53
|
+
// explicitly chosen.
|
|
54
|
+
const LOCALE_INIT_SCRIPT = `(function(){try{
|
|
55
|
+
var saved = localStorage.getItem('evolver-locale') || 'en';
|
|
56
|
+
if (saved !== 'en' && saved !== 'zh') saved = 'en';
|
|
57
|
+
document.documentElement.setAttribute('data-locale', saved);
|
|
58
|
+
document.documentElement.lang = saved === 'zh' ? 'zh-CN' : 'en';
|
|
59
|
+
}catch(_){}})()`;
|
|
60
|
+
|
|
61
|
+
function getIndexHtml() {
|
|
62
|
+
return `<!doctype html>
|
|
63
|
+
<html lang="en">
|
|
64
|
+
<head>
|
|
65
|
+
<meta charset="utf-8">
|
|
66
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
67
|
+
<title>Evolver Web UI</title>
|
|
68
|
+
<script>${THEME_INIT_SCRIPT}</script>
|
|
69
|
+
<script>${LOCALE_INIT_SCRIPT}</script>
|
|
70
|
+
<link rel="stylesheet" href="/app.css">
|
|
71
|
+
<script src="/vendor/echarts.min.js"></script>
|
|
72
|
+
</head>
|
|
73
|
+
<body class="app-atmosphere">
|
|
74
|
+
<div class="shell">
|
|
75
|
+
<aside class="sidebar">
|
|
76
|
+
<div class="brand">
|
|
77
|
+
<img class="brand-mark" src="${LOGO_DATA_URI}" alt="Evolver" draggable="false" />
|
|
78
|
+
<div class="brand-text">
|
|
79
|
+
<span class="brand-title">Evolver</span>
|
|
80
|
+
<span class="brand-eyebrow" data-i18n="brand.eyebrow">local agent</span>
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
<nav class="nav">
|
|
84
|
+
${NAV.map(navItem).join('\n ')}
|
|
85
|
+
</nav>
|
|
86
|
+
<div class="sidebar-spacer"></div>
|
|
87
|
+
<div class="sidebar-footer">v1.80 · <span data-i18n="sidebar.footer">evolves with you</span></div>
|
|
88
|
+
</aside>
|
|
89
|
+
|
|
90
|
+
<div class="main-col">
|
|
91
|
+
<header class="topbar">
|
|
92
|
+
<div class="topbar-left">
|
|
93
|
+
<h1 class="topbar-title" id="topbar-title" data-i18n="nav.overview">Overview</h1>
|
|
94
|
+
<p class="topbar-eyebrow" data-i18n="topbar.eyebrow">EvoMap Evolver · Web UI Observability</p>
|
|
95
|
+
</div>
|
|
96
|
+
<div class="topbar-actions">
|
|
97
|
+
<button id="locale-toggle" class="btn-icon btn-locale" data-i18n-attr-title="btn.locale.title" data-i18n-attr-aria-label="btn.locale.title" title="Switch language (EN / 中)" aria-label="Switch language">
|
|
98
|
+
<span class="locale-glyph">EN</span>
|
|
99
|
+
</button>
|
|
100
|
+
<button id="theme-toggle" class="btn-icon" data-i18n-attr-title="btn.theme.title" data-i18n-attr-aria-label="btn.theme.title" title="Toggle light / dark theme" aria-label="Toggle theme">
|
|
101
|
+
<span class="theme-icon theme-icon-sun">${ICONS.sun}</span>
|
|
102
|
+
<span class="theme-icon theme-icon-moon">${ICONS.moon}</span>
|
|
103
|
+
</button>
|
|
104
|
+
<button id="refresh" class="btn-ghost" data-i18n-attr-title="btn.refresh.title" title="Refresh all data">
|
|
105
|
+
<span class="nav-icon">${ICONS.refresh}</span>
|
|
106
|
+
<span data-i18n="btn.refresh">Refresh</span>
|
|
107
|
+
</button>
|
|
108
|
+
</div>
|
|
109
|
+
</header>
|
|
110
|
+
|
|
111
|
+
<main class="content evox-scroll">
|
|
112
|
+
<section data-view="overview" class="view active">
|
|
113
|
+
<div class="grid-top">
|
|
114
|
+
<div class="card"><h2 data-i18n="overview.card.status">Status</h2><div id="status" data-i18n="common.loading">Loading...</div></div>
|
|
115
|
+
<div class="card"><h2 data-i18n="overview.card.safety">Safety</h2><div id="safety" data-i18n="common.loading">Loading...</div></div>
|
|
116
|
+
<div class="card"><h2 data-i18n="overview.card.interactions">Interactions</h2><div id="interactions" data-i18n="common.loading">Loading...</div></div>
|
|
117
|
+
</div>
|
|
118
|
+
<div class="grid-charts">
|
|
119
|
+
<div class="card"><h2 data-i18n="overview.card.genesByCategory">Genes by Category</h2><div id="genesChart" class="chart-container"></div></div>
|
|
120
|
+
<div class="card"><h2 data-i18n="overview.card.capsulesByOutcome">Capsules by Outcome</h2><div id="capsulesChart" class="chart-container"></div></div>
|
|
121
|
+
<div class="card"><h2 data-i18n="overview.card.assetCalls">Asset Calls</h2><div id="callsChart" class="chart-container"></div></div>
|
|
122
|
+
</div>
|
|
123
|
+
<div class="grid-bottom">
|
|
124
|
+
<div class="card">
|
|
125
|
+
<h2 data-i18n="overview.card.latestRun">Latest Pipeline Run</h2>
|
|
126
|
+
<div id="latest-run" data-i18n="common.loading">Loading...</div>
|
|
127
|
+
</div>
|
|
128
|
+
<div class="card">
|
|
129
|
+
<h2 data-i18n="overview.card.skills">Skills</h2>
|
|
130
|
+
<div id="skills" data-i18n="common.loading">Loading...</div>
|
|
131
|
+
</div>
|
|
132
|
+
</div>
|
|
133
|
+
</section>
|
|
134
|
+
|
|
135
|
+
<section data-view="pipelines" class="view">
|
|
136
|
+
<div class="card">
|
|
137
|
+
<h2 data-i18n="pipelines.card.scoreTrend">Score Trend</h2>
|
|
138
|
+
<div id="scoreTrendChart" class="chart-container"></div>
|
|
139
|
+
</div>
|
|
140
|
+
<div class="grid-bottom">
|
|
141
|
+
<div class="card">
|
|
142
|
+
<h2 data-i18n="pipelines.card.runs">Pipeline Runs</h2>
|
|
143
|
+
<div class="table-wrapper">
|
|
144
|
+
<table id="runsTable">
|
|
145
|
+
<thead><tr><th data-i18n="pipelines.col.runId">Run ID</th><th data-i18n="pipelines.col.status">Status</th><th data-i18n="pipelines.col.gene">Gene</th><th data-i18n="pipelines.col.score">Score</th><th data-i18n="pipelines.col.updated">Updated</th></tr></thead>
|
|
146
|
+
<tbody></tbody>
|
|
147
|
+
</table>
|
|
148
|
+
</div>
|
|
149
|
+
</div>
|
|
150
|
+
<div class="card">
|
|
151
|
+
<h2 data-i18n="pipelines.card.runTrace">Run Trace</h2>
|
|
152
|
+
<div id="run-detail"><p class="muted" data-i18n="pipelines.runs.selectHint">Select a run to inspect its trace.</p></div>
|
|
153
|
+
</div>
|
|
154
|
+
</div>
|
|
155
|
+
</section>
|
|
156
|
+
|
|
157
|
+
<section data-view="assets" class="view">
|
|
158
|
+
<div class="asset-tabs">
|
|
159
|
+
<button class="asset-tab active" data-asset="genes" data-i18n="assets.tab.genes">Genes</button>
|
|
160
|
+
<button class="asset-tab" data-asset="capsules" data-i18n="assets.tab.capsules">Capsules</button>
|
|
161
|
+
<button class="asset-tab" data-asset="events" data-i18n="assets.tab.events">Events</button>
|
|
162
|
+
<button class="asset-tab" data-asset="candidates" data-i18n="assets.tab.candidates">Candidates</button>
|
|
163
|
+
<button class="asset-tab" data-asset="calls" data-i18n="assets.tab.calls">Asset Calls</button>
|
|
164
|
+
</div>
|
|
165
|
+
<div class="card">
|
|
166
|
+
<div id="asset-list" data-i18n="common.loading">Loading...</div>
|
|
167
|
+
</div>
|
|
168
|
+
</section>
|
|
169
|
+
|
|
170
|
+
<section data-view="interactions" class="view">
|
|
171
|
+
<div class="grid-charts">
|
|
172
|
+
<div class="card"><h2 data-i18n="interactions.card.hubByAction">Hub A2A by Action</h2><div id="hubActionChart" class="chart-container"></div></div>
|
|
173
|
+
<div class="card"><h2 data-i18n="interactions.card.activity30d">Activity (last 30 days)</h2><div id="activityChart" class="chart-container"></div></div>
|
|
174
|
+
<div class="card"><h2 data-i18n="interactions.card.mailboxByType">Mailbox by Type</h2><div id="mailboxChart" class="chart-container"></div></div>
|
|
175
|
+
</div>
|
|
176
|
+
<div class="card">
|
|
177
|
+
<h2 data-i18n="interactions.card.hubActivity">Hub Activity</h2>
|
|
178
|
+
<p class="muted small card-sub" data-i18n="interactions.card.hubActivity.desc">Unified timeline of every Hub interaction — connection lifecycle (hello/heartbeat/fetch), asset calls (search/reuse/publish) and ATP credit flows.</p>
|
|
179
|
+
<div id="hub-activity-summary" class="lifecycle-summary" data-i18n="common.loading">Loading...</div>
|
|
180
|
+
<div class="filter-bar" id="hub-activity-filters" style="display:none">
|
|
181
|
+
<div class="filter-group">
|
|
182
|
+
<span class="filter-label" data-i18n="interactions.filter.layer">Layer</span>
|
|
183
|
+
<button class="filter-pill active" data-filter-layer="all" data-i18n="interactions.filter.all">All</button>
|
|
184
|
+
<button class="filter-pill" data-filter-layer="lifecycle" data-i18n="interactions.filter.lifecycle">Lifecycle</button>
|
|
185
|
+
<button class="filter-pill" data-filter-layer="asset" data-i18n="interactions.filter.asset">Asset</button>
|
|
186
|
+
<button class="filter-pill" data-filter-layer="atp" data-i18n="interactions.filter.atp">ATP</button>
|
|
187
|
+
</div>
|
|
188
|
+
<label class="filter-toggle"><input type="checkbox" id="hide-heartbeats" checked /> <span data-i18n="interactions.filter.hideHeartbeats">Hide heartbeats</span></label>
|
|
189
|
+
</div>
|
|
190
|
+
<div id="hub-activity" data-i18n="common.loading">Loading...</div>
|
|
191
|
+
</div>
|
|
192
|
+
<div class="card">
|
|
193
|
+
<h2 data-i18n="interactions.card.agent">Agent Interactions</h2>
|
|
194
|
+
<p class="muted small card-sub" data-i18n="interactions.card.agent.desc">Mailbox messages, sessions and DMs (read-only, redacted).</p>
|
|
195
|
+
<div id="agent-stream" data-i18n="common.loading">Loading...</div>
|
|
196
|
+
</div>
|
|
197
|
+
<div class="card">
|
|
198
|
+
<h2 data-i18n="interactions.card.proxySnapshots">Proxy Snapshots</h2>
|
|
199
|
+
<div id="proxy-snapshots" class="snapshot-grid" data-i18n="common.loading">Loading...</div>
|
|
200
|
+
</div>
|
|
201
|
+
</section>
|
|
202
|
+
|
|
203
|
+
<section data-view="personality" class="view">
|
|
204
|
+
<div class="grid-charts">
|
|
205
|
+
<div class="card"><h2 data-i18n="personality.card.traits">Personality Traits</h2><div id="personalityChart" class="chart-container chart-tall"></div></div>
|
|
206
|
+
<div class="card"><h2 data-i18n="personality.card.detail">Personality Detail</h2><div id="personality-detail" data-i18n="common.loading">Loading...</div></div>
|
|
207
|
+
</div>
|
|
208
|
+
<div class="card">
|
|
209
|
+
<h2 data-i18n="personality.card.memoryGraph">Memory Graph (last 100 events)</h2>
|
|
210
|
+
<div id="memory-graph-chart" class="chart-container chart-xl"></div>
|
|
211
|
+
</div>
|
|
212
|
+
</section>
|
|
213
|
+
</main>
|
|
214
|
+
</div>
|
|
215
|
+
</div>
|
|
216
|
+
<script src="/app.js"></script>
|
|
217
|
+
</body>
|
|
218
|
+
</html>`;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
module.exports = { getIndexHtml };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
|
|
6
|
+
const { getIndexHtml } = require('./indexHtml');
|
|
7
|
+
const { getClientJs } = require('./clientJs');
|
|
8
|
+
const { getStylesCss } = require('./stylesCss');
|
|
9
|
+
|
|
10
|
+
let _vendorEchartsCache = null;
|
|
11
|
+
function getVendorEcharts() {
|
|
12
|
+
if (!_vendorEchartsCache) {
|
|
13
|
+
_vendorEchartsCache = fs.readFileSync(path.join(__dirname, 'vendor', 'echarts.min.js'));
|
|
14
|
+
}
|
|
15
|
+
return _vendorEchartsCache;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
module.exports = {
|
|
19
|
+
getIndexHtml,
|
|
20
|
+
getClientJs,
|
|
21
|
+
getStylesCss,
|
|
22
|
+
getVendorEcharts,
|
|
23
|
+
};
|