Watch
0
0
Fork
You've already forked hyperhive
0

remove the hive dashboard's stats page and the price table behind it

The ST4TS page (/stats.html), GET /api/stats-hive, hive-c0re's hive_stats
rollup and the modelPrices option that only fed its cost estimate are
gone. Each agent's own /stats page and the turn-stats database it reads
are unchanged. Setting modelPrices now fails evaluation with a message
saying so.
This commit is contained in:
iris 2026-11-02 23:15:51 +01:00 • committed by mara
commit 5e9a22cb38

View file

@ -1,6 +1,5 @@
// esbuild build for @hive/dashboard: one JS+CSS bundle per page (the
// dashboard at `/`, stats at its own
// `.html`), each named after its own entry point below — see the
// dashboard at `/`), each named after its own entry point below — see the
// `entryPoints`/`for` lists for the exact map, not repeated here to
// avoid this comment drifting out of sync with the real build steps.
//
@ -29,7 +28,7 @@ mkdirSync(staticDir(""), { recursive: true });
// follow-up once asset sizes warrant it). esbuild writes each entry
// to `static/<name>.js` based on the entryPoint basename.
await build({
entryPoints: [src("tabs.js"), src("stats.js")],
entryPoints: [src("tabs.js")],
outdir: staticDir(""),
bundle: true,
format: "esm",
@ -58,7 +57,7 @@ await build({
// Stream-worker entry. Lives in a separate bundle: SharedWorker
// scripts run in a different global (`self` is the worker scope, no
// `window`) so they can't be inlined into tabs.js / stats.js. Output is
// `window`) so they can't be inlined into tabs.js. Output is
// at `static/stream-worker.js`; common.js's `openStream` references
// `/static/stream-worker.js` as the SharedWorker URL. `format: 'iife'`
// matches the classic-script load (`new SharedWorker(url, name)` with
@ -89,7 +88,6 @@ for (const entry of [
"theme.css",
"common.css",
"dashboard.css",
"stats.css",
]) {
await build({
entryPoints: [src(entry)],
@ -100,8 +98,6 @@ for (const entry of [
});
}
for (const html of ["index.html", "stats.html"]) {
copyFileSync(src(html), dist(html));
}
copyFileSync(src("index.html"), dist("index.html"));
console.log("dashboard build ok →", dist(""));