Neutralize Electron runtime identity

This commit is contained in:
Meta Vens 2026-07-05 22:39:15 +01:00
commit 99e7454a0d
4 changed files with 16 additions and 10 deletions

View file

@ -27,7 +27,7 @@ let eveSurfacePoll: number | null = null;
function requiredElement<TElement extends Element>(selector: string): TElement {
const element = document.querySelector<TElement>(selector);
if (!element) {
throw new Error(`Aetheria RTS is missing ${selector}.`);
throw new Error(`Aetheria Starbridge is missing ${selector}.`);
}
return element;
@ -55,7 +55,7 @@ async function showDaemonEveSurface(): Promise<void> {
renderEveSurface(surface, host, {
body: document.body,
assetUrlResolver: resolveAetheriaAssetUrl,
clientId: "aetheria.rts.electron",
clientId: "aetheria-electron-client",
commandSink: intent => submitEveCommand(intent),
documentResolver: resolveEveDocument,
source: "Aetheria Daemon",

View file

@ -36,12 +36,12 @@ let isQuitting = false;
app.whenReady().then(async () => {
mainWindow = createWindow();
registerIpc();
showStartup("Preparing Aetheria RTS", "Building daemon if needed.");
showStartup("Preparing Aetheria Starbridge", "Building daemon if needed.");
try {
if (launchLocalDaemon) {
await ensureDotnetBuild();
showStartup("Launching Aetheria RTS", "Starting the Aetheria daemon.");
showStartup("Launching Aetheria Starbridge", "Starting the Aetheria daemon.");
mkdirSync(runtimeRoot, { recursive: true });
daemonProcess = startDotnet("aetheria-daemon", daemonDll, [
"--state",
@ -63,7 +63,7 @@ app.whenReady().then(async () => {
"--no-odin-announcements",
]);
} else {
showStartup("Connecting Aetheria RTS", `Using daemon ${daemonCultMeshUri}.`);
showStartup("Connecting Aetheria Starbridge", `Using daemon ${daemonCultMeshUri}.`);
mkdirSync(runtimeRoot, { recursive: true });
}
@ -79,7 +79,7 @@ app.whenReady().then(async () => {
"aetheria-electron-client",
{ publicationMode: launchLocalDaemon ? "local" : "remote" });
showStartup("Launching Aetheria RTS", "Waiting for the daemon CultMesh frame.");
showStartup("Launching Aetheria Starbridge", "Waiting for the daemon CultMesh frame.");
await aetheriaClient.waitForFrame(30000);
await mainWindow.loadFile(rendererIndex);
if (electronSmoke) {
@ -119,7 +119,7 @@ function createWindow(): BrowserWindow {
minHeight: 640,
show: !electronSmoke,
backgroundColor: "#0b1016",
title: "Aetheria RTS",
title: "Aetheria Starbridge",
frame: false,
autoHideMenuBar: true,
webPreferences: {
@ -216,7 +216,7 @@ async function runElectronSmoke(window: BrowserWindow): Promise<Record<string, u
await delay(250);
}
throw new Error(`Aetheria RTS Electron smoke did not reach ready state. Last result: ${JSON.stringify(lastResult)}`);
throw new Error(`Aetheria Starbridge Electron smoke did not reach ready state. Last result: ${JSON.stringify(lastResult)}`);
}
function isElectronSmokeReady(result: Record<string, unknown>): boolean {
@ -445,7 +445,7 @@ function showStartup(title: string, detail: string): void {
async function showFailure(error: unknown): Promise<void> {
const message = error instanceof Error ? error.message : String(error);
await mainWindow?.loadURL(`data:text/html;charset=utf-8,${encodeURIComponent(startupHtml("Aetheria RTS failed to start", message))}`);
await mainWindow?.loadURL(`data:text/html;charset=utf-8,${encodeURIComponent(startupHtml("Aetheria Starbridge failed to start", message))}`);
}
function startupHtml(title: string, detail: string): string {

View file

@ -19,6 +19,10 @@ if (-not $appText.Contains('window.aetheriaRts.eveSurface') -or
$appText.Contains('main-menu-mode')) {
Write-Error "Stage 7C Electron RTS verifier failed: renderer is not daemon-Eve-only."
}
if ($appText.Contains('aetheria.rts.electron') -or
$appText.Contains('Aetheria RTS')) {
Write-Error "Stage 7C Electron RTS verifier failed: renderer still advertises an RTS-branded client identity."
}
$mainText = Get-Content Electron\main.ts -Raw
if (-not $mainText.Contains('await api.surfaceCatalog()') -or -not $mainText.Contains('await api.surfaceCatalogIndex()')) {
@ -46,8 +50,10 @@ if (-not $mainText.Contains('AETHERIA_VERSE_ID') -or
Write-Error "Stage 7C Electron RTS verifier failed: Electron launcher does not configure daemon Verse identity."
}
if ($mainText.Contains('AETHERIA_RTS_') -or
$mainText.Contains('Aetheria RTS') -or
$mainText.Contains('starfire-rts') -or
$mainText.Contains('aetheria-rts-daemon') -or
$mainText.Contains('aetheria.rts.electron') -or
$mainText.Contains('aetheria-rts-electron') -or
$mainText.Contains('rtsCultMesh') -or
$mainText.Contains('rtsDaemonId') -or

View file

@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Aetheria RTS</title>
<title>Aetheria Starbridge</title>
<link rel="stylesheet" href="../node_modules/@gamecult/eve-browser-lowering/styles.css">
<link rel="stylesheet" href="styles.css">
</head>