Resolve Eve documents behind provider transport
This commit is contained in:
parent
14c849a794
commit
1218dbf655
8 changed files with 129 additions and 38 deletions
|
|
@ -43,6 +43,7 @@ const ipcChannels = [
|
|||
["surfaceCatalogIndex", "aetheria-rts:surface-catalog-index"],
|
||||
["eveSurface", "aetheria-rts:eve-surface"],
|
||||
["eveProviderAdvertisement", "eve:provider-advertisement"],
|
||||
["eveDocument", "eve:embedded-document"],
|
||||
["submitEveCommand", "aetheria-rts:submit-eve-command"],
|
||||
["windowControl", "aetheria-rts:window-control"],
|
||||
["health", "aetheria-rts:health"],
|
||||
|
|
@ -486,6 +487,21 @@ export type AetheriaEveSurfaceRequest = {
|
|||
recordKey?: string;
|
||||
};
|
||||
|
||||
export type EveEmbeddedDocumentRequest = {
|
||||
documentId: string;
|
||||
schemaId?: string;
|
||||
slotId?: string;
|
||||
presentationKind?: string;
|
||||
context?: Record<string, unknown>;
|
||||
};
|
||||
|
||||
export type EveResolvedDocument = {
|
||||
documentId: string;
|
||||
schemaId: string;
|
||||
document?: unknown;
|
||||
surface?: AetheriaMenuSurfaceTree;
|
||||
};
|
||||
|
||||
export type EveProviderAdvertisement = {
|
||||
providerId: string;
|
||||
title: string;
|
||||
|
|
@ -567,6 +583,7 @@ export type AetheriaRtsMainClient = {
|
|||
setTarget(request: AetheriaRuntimeSetTargetRequest): Promise<AetheriaRuntimeDaemonCommandReceipt>;
|
||||
eveSurface(request: AetheriaEveSurfaceRequest): Promise<AetheriaMenuSurfaceDocument>;
|
||||
eveProviderAdvertisement(): Promise<EveProviderAdvertisement>;
|
||||
eveDocument(request: EveEmbeddedDocumentRequest): Promise<EveResolvedDocument | undefined>;
|
||||
submitEveCommand(request: AetheriaEveCommandRequest): Promise<AetheriaRuntimeDaemonCommandReceipt>;
|
||||
surfaceCatalogDiagnostics(): CultMeshSurfaceCatalogDiagnostic;
|
||||
surfaceCatalogIndexDiagnostics(): CultMeshSurfaceCatalogIndexDiagnostic;
|
||||
|
|
@ -618,6 +635,8 @@ export function registerAetheriaRtsIpcHandlers(
|
|||
getClient().eveSurface(request));
|
||||
ipcMain.handle(AetheriaRtsIpcChannels.eveProviderAdvertisement, async () =>
|
||||
getClient().eveProviderAdvertisement());
|
||||
ipcMain.handle(AetheriaRtsIpcChannels.eveDocument, async (_event, request: EveEmbeddedDocumentRequest) =>
|
||||
getClient().eveDocument(request));
|
||||
ipcMain.handle(AetheriaRtsIpcChannels.submitEveCommand, async (_event, request: AetheriaEveCommandRequest) =>
|
||||
getClient().submitEveCommand(request));
|
||||
ipcMain.handle(AetheriaRtsIpcChannels.surfaceCatalog, () => getClient().surfaceCatalogDiagnostics());
|
||||
|
|
@ -1164,6 +1183,21 @@ export type AetheriaEveSurfaceRequest = {
|
|||
recordKey?: string;
|
||||
};
|
||||
|
||||
export type EveEmbeddedDocumentRequest = {
|
||||
documentId: string;
|
||||
schemaId?: string;
|
||||
slotId?: string;
|
||||
presentationKind?: string;
|
||||
context?: Record<string, unknown>;
|
||||
};
|
||||
|
||||
export type EveResolvedDocument = {
|
||||
documentId: string;
|
||||
schemaId: string;
|
||||
document?: unknown;
|
||||
surface?: AetheriaMenuSurfaceTree;
|
||||
};
|
||||
|
||||
export type EveProviderAdvertisement = {
|
||||
providerId: string;
|
||||
title: string;
|
||||
|
|
@ -1245,6 +1279,7 @@ export type AetheriaRtsApi = {
|
|||
surfaceCatalogIndex(): Promise<CultMeshSurfaceCatalogIndexDiagnostic>;
|
||||
eveSurface(request: AetheriaEveSurfaceRequest): Promise<AetheriaMenuSurfaceDocument>;
|
||||
eveProviderAdvertisement(): Promise<EveProviderAdvertisement>;
|
||||
eveDocument(request: EveEmbeddedDocumentRequest): Promise<EveResolvedDocument | undefined>;
|
||||
submitEveCommand(request: AetheriaEveCommandRequest): Promise<AetheriaRuntimeDaemonCommandReceipt>;
|
||||
windowControl(action: "minimize" | "maximize" | "close"): Promise<void>;
|
||||
health(): Promise<unknown>;
|
||||
|
|
|
|||
|
|
@ -15,7 +15,11 @@ if (-not (Get-Content wwwroot\index.html -Raw).Contains('eve-surface-host')) {
|
|||
$appText = Get-Content wwwroot\app.js -Raw
|
||||
if (-not $appText.Contains('window.aetheriaRts.eveProviderAdvertisement') -or
|
||||
-not $appText.Contains('EveBrowserProviderHost') -or
|
||||
-not $appText.Contains('window.aetheriaRts.eveDocument') -or
|
||||
$appText.Contains('eve:surface:aetheria.daemon.game') -or
|
||||
$appText.Contains('gamecult.aetheria.gravity_viewport.v1') -or
|
||||
$appText.Contains('gamecult.aetheria.render_splats_viewport.v1') -or
|
||||
$appText.Contains('gamecult.aetheria.objects_viewport.v1') -or
|
||||
$appText.Contains('legacyViewportMode') -or
|
||||
$appText.Contains('mainMenuSurface') -or
|
||||
$appText.Contains('main-menu-mode')) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue