Add read-only web dashboard MVP

Adds a disabled-by-default loopback web dashboard MVP with read-only control-plane views, prompt preview redaction, Vite React UI, and validation coverage.
This commit is contained in:
Eyejoker
2026-04-26 17:05:50 +09:00
committed by GitHub
parent d52556fd28
commit 5ba607644f
20 changed files with 1857 additions and 10 deletions

View File

@@ -260,6 +260,15 @@ export function loadConfig(): AppConfig {
timezone:
readText('TZ') ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
},
webDashboard: {
enabled: readBoolean('WEB_DASHBOARD_ENABLED', false),
host: readNonEmptyText('WEB_DASHBOARD_HOST') ?? '127.0.0.1',
port: readIntegerAtLeast('WEB_DASHBOARD_PORT', 8734, 1),
staticDir: path.resolve(
readNonEmptyText('WEB_DASHBOARD_STATIC_DIR') ??
path.join(projectRoot, 'apps', 'dashboard', 'dist'),
),
},
codexWarmup: {
enabled: readBoolean('CODEX_WARMUP_ENABLED', false),
prompt:

View File

@@ -78,6 +78,12 @@ export interface AppConfig {
usageDashboardEnabled: boolean;
timezone: string;
};
webDashboard: {
enabled: boolean;
host: string;
port: number;
staticDir: string;
};
codexWarmup: {
enabled: boolean;
prompt: string;