Use CultMesh documents in RTS bindings
This commit is contained in:
parent
c17ffe4da5
commit
39e4800602
5 changed files with 111 additions and 71 deletions
|
|
@ -13,10 +13,10 @@ import type {
|
|||
} from "cultnet-ts";
|
||||
import {
|
||||
AetheriaRtsSchemas,
|
||||
createAetheriaRuntimeRtsDocuments,
|
||||
createAetheriaRuntimeRtsOperationHandles,
|
||||
createAetheriaRuntimeRtsVerseFacade,
|
||||
createAetheriaRuntimeRtsQueryHandles,
|
||||
createAetheriaRuntimeRtsStatePointers,
|
||||
describeAetheriaRuntimeRtsLiveFeedSurface,
|
||||
describeAetheriaRuntimeRtsQueryHandles,
|
||||
describeAetheriaRuntimeRtsSurfaceCatalog,
|
||||
|
|
@ -31,7 +31,7 @@ import {
|
|||
type AetheriaRuntimeRtsSurfaceCatalogDiagnostic,
|
||||
type AetheriaRuntimeRtsOperationHandles,
|
||||
type AetheriaRuntimeRtsVerseFacade,
|
||||
type AetheriaRuntimeRtsStatePointers,
|
||||
type AetheriaRuntimeRtsDocuments,
|
||||
type AetheriaRuntimeViewportFeedRequest,
|
||||
type AetheriaRuntimeViewportFeedSnapshot,
|
||||
type RtsSetMoveVectorRequest,
|
||||
|
|
@ -139,7 +139,7 @@ export class AetheriaCultMeshClient {
|
|||
starbridgeSession: CultMesh.pollingQueryWatcher(executors.starbridgeSession, { intervalMs: 250 }),
|
||||
},
|
||||
);
|
||||
this.statePointers = createAetheriaRuntimeRtsStatePointers(
|
||||
this.documents = createAetheriaRuntimeRtsDocuments(
|
||||
this.queryVerse.context.routeHint,
|
||||
{
|
||||
daemonFrame: async () => this.fetchLatestFrameDocument(),
|
||||
|
|
@ -157,13 +157,13 @@ export class AetheriaCultMeshClient {
|
|||
this.commandVerse.context,
|
||||
this.queries,
|
||||
this.operations,
|
||||
this.statePointers,
|
||||
this.documents,
|
||||
);
|
||||
}
|
||||
|
||||
private readonly publications: AetheriaPublicationReader;
|
||||
private readonly queries: ReturnType<typeof createAetheriaRuntimeRtsQueryHandles>;
|
||||
private readonly statePointers: AetheriaRuntimeRtsStatePointers;
|
||||
private readonly documents: AetheriaRuntimeRtsDocuments;
|
||||
private readonly operations: AetheriaRuntimeRtsOperationHandles;
|
||||
private readonly aetheria: AetheriaRuntimeRtsVerseFacade;
|
||||
|
||||
|
|
@ -232,7 +232,7 @@ export class AetheriaCultMeshClient {
|
|||
}
|
||||
|
||||
public surfaceCatalogDiagnostics(): AetheriaRuntimeRtsSurfaceCatalogDiagnostic {
|
||||
const catalog = describeAetheriaRuntimeRtsSurfaceCatalog(this.queries, this.operations, this.statePointers);
|
||||
const catalog = describeAetheriaRuntimeRtsSurfaceCatalog(this.queries, this.operations, this.documents);
|
||||
return CultMesh.describeSurfaceCatalog(catalog.catalogId, [
|
||||
...catalog.surfaces,
|
||||
CultMesh.describeSurface(this.createViewportFeed()),
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ export {
|
|||
AetheriaRtsIpcChannels,
|
||||
AetheriaRtsSchemas,
|
||||
AetheriaRuntimeDaemonCommandKinds,
|
||||
createAetheriaRuntimeRtsDocuments,
|
||||
createAetheriaRuntimeRtsOperationHandles,
|
||||
createAetheriaRuntimeRtsQueryHandles,
|
||||
createAetheriaRuntimeRtsStatePointers,
|
||||
|
|
@ -16,6 +17,8 @@ export {
|
|||
export type {
|
||||
AetheriaRuntimeDaemonCommandReceipt,
|
||||
AetheriaRuntimeRtsLiveFeedDiagnostic,
|
||||
AetheriaRuntimeRtsDocumentResolvers,
|
||||
AetheriaRuntimeRtsDocuments,
|
||||
AetheriaRuntimeRtsOperationHandles,
|
||||
AetheriaRuntimeRtsProjectionDiagnostic,
|
||||
AetheriaRuntimeRtsStatePointerResolvers,
|
||||
|
|
|
|||
|
|
@ -1743,15 +1743,19 @@ export type AetheriaRuntimeRtsSurfaceCatalogDiagnostic = CultMeshSurfaceCatalogD
|
|||
|
||||
export type AetheriaRuntimeRtsOperationHandles = ReturnType<typeof createAetheriaRuntimeRtsOperationHandles>;
|
||||
|
||||
export type AetheriaRuntimeRtsStatePointers = ReturnType<typeof createAetheriaRuntimeRtsStatePointers>;
|
||||
export type AetheriaRuntimeRtsDocuments = ReturnType<typeof createAetheriaRuntimeRtsDocuments>;
|
||||
|
||||
export type AetheriaRuntimeRtsStatePointerResolvers = Partial<{
|
||||
export type AetheriaRuntimeRtsStatePointers = AetheriaRuntimeRtsDocuments;
|
||||
|
||||
export type AetheriaRuntimeRtsDocumentResolvers = Partial<{
|
||||
daemonFrame: (context: CultMeshQueryContext) => Promise<unknown>;
|
||||
daemonHealth: (context: CultMeshQueryContext) => Promise<unknown>;
|
||||
authorityPolicy: (context: CultMeshQueryContext) => Promise<unknown>;
|
||||
starbridgeSession: (context: CultMeshQueryContext) => Promise<unknown>;
|
||||
}>;
|
||||
|
||||
export type AetheriaRuntimeRtsStatePointerResolvers = AetheriaRuntimeRtsDocumentResolvers;
|
||||
|
||||
export const AetheriaRuntimeRtsProjectionSources = {
|
||||
daemonFrame: CultMesh.projectionSource("daemon:aetheria.frame.latest.v1", {
|
||||
schemaId: AetheriaRtsSchemas.daemonFrame,
|
||||
|
|
@ -1771,42 +1775,42 @@ export const AetheriaRuntimeRtsProjectionSources = {
|
|||
})
|
||||
} as const;
|
||||
|
||||
export function createAetheriaRuntimeRtsStatePointers(
|
||||
export function createAetheriaRuntimeRtsDocuments(
|
||||
routeHint: CultMeshRouteHint = CultMesh.routeHint(),
|
||||
resolvers: AetheriaRuntimeRtsStatePointerResolvers = {},
|
||||
resolvers: AetheriaRuntimeRtsDocumentResolvers = {},
|
||||
) {
|
||||
return {
|
||||
daemonFrame: CultMesh.statePointer(
|
||||
daemonFrame: CultMesh.document(
|
||||
AetheriaRuntimeRtsProjectionSources.daemonFrame.sourceId,
|
||||
{ schemaId: AetheriaRtsSchemas.daemonFrame },
|
||||
async (context) => resolvers.daemonFrame?.(context),
|
||||
undefined,
|
||||
{
|
||||
routeHint,
|
||||
sources: [AetheriaRuntimeRtsProjectionSources.daemonFrame],
|
||||
},
|
||||
),
|
||||
daemonHealth: CultMesh.statePointer(
|
||||
daemonHealth: CultMesh.document(
|
||||
AetheriaRuntimeRtsProjectionSources.daemonHealth.sourceId,
|
||||
{ schemaId: AetheriaRtsSchemas.daemonHealth },
|
||||
async (context) => resolvers.daemonHealth?.(context),
|
||||
undefined,
|
||||
{
|
||||
routeHint,
|
||||
sources: [AetheriaRuntimeRtsProjectionSources.daemonHealth],
|
||||
},
|
||||
),
|
||||
authorityPolicy: CultMesh.statePointer(
|
||||
authorityPolicy: CultMesh.document(
|
||||
AetheriaRuntimeRtsProjectionSources.authorityPolicy.sourceId,
|
||||
{ schemaId: AetheriaRtsSchemas.verseAuthorityPolicy },
|
||||
async (context) => resolvers.authorityPolicy?.(context),
|
||||
undefined,
|
||||
{
|
||||
routeHint,
|
||||
sources: [AetheriaRuntimeRtsProjectionSources.authorityPolicy],
|
||||
},
|
||||
),
|
||||
starbridgeSession: CultMesh.statePointer(
|
||||
starbridgeSession: CultMesh.document(
|
||||
AetheriaRuntimeRtsProjectionSources.starbridgeSession.sourceId,
|
||||
{ schemaId: AetheriaRtsSchemas.starbridgeSessionSummary },
|
||||
async (context) => resolvers.starbridgeSession?.(context),
|
||||
undefined,
|
||||
{
|
||||
routeHint,
|
||||
sources: [AetheriaRuntimeRtsProjectionSources.starbridgeSession],
|
||||
|
|
@ -1815,6 +1819,8 @@ export function createAetheriaRuntimeRtsStatePointers(
|
|||
} as const;
|
||||
}
|
||||
|
||||
export const createAetheriaRuntimeRtsStatePointers = createAetheriaRuntimeRtsDocuments;
|
||||
|
||||
export function createAetheriaRuntimeRtsQueryHandles(
|
||||
executors: AetheriaRuntimeRtsQueryExecutors,
|
||||
routeHint: CultMeshRouteHint = CultMesh.routeHint(),
|
||||
|
|
@ -1890,15 +1896,27 @@ export function describeAetheriaRuntimeRtsQueryHandles(
|
|||
export function describeAetheriaRuntimeRtsSurfaceCatalog(
|
||||
handles: ReturnType<typeof createAetheriaRuntimeRtsQueryHandles>,
|
||||
operations?: AetheriaRuntimeRtsOperationHandles,
|
||||
statePointers: AetheriaRuntimeRtsStatePointers = createAetheriaRuntimeRtsStatePointers(),
|
||||
documents: AetheriaRuntimeRtsDocuments = createAetheriaRuntimeRtsDocuments(),
|
||||
): AetheriaRuntimeRtsSurfaceCatalogDiagnostic {
|
||||
return CultMesh.describeSurfaceCatalog(
|
||||
"gamecult.aetheria.rts.surfaces.v1",
|
||||
[
|
||||
CultMesh.describeSurface(statePointers.daemonFrame),
|
||||
CultMesh.describeSurface(statePointers.daemonHealth),
|
||||
CultMesh.describeSurface(statePointers.authorityPolicy),
|
||||
CultMesh.describeSurface(statePointers.starbridgeSession),
|
||||
CultMesh.surfaceDiagnostic("state-pointer", documents.daemonFrame.documentId, {
|
||||
routeHint: documents.daemonFrame.routeHint,
|
||||
sources: documents.daemonFrame.sources,
|
||||
}),
|
||||
CultMesh.surfaceDiagnostic("state-pointer", documents.daemonHealth.documentId, {
|
||||
routeHint: documents.daemonHealth.routeHint,
|
||||
sources: documents.daemonHealth.sources,
|
||||
}),
|
||||
CultMesh.surfaceDiagnostic("state-pointer", documents.authorityPolicy.documentId, {
|
||||
routeHint: documents.authorityPolicy.routeHint,
|
||||
sources: documents.authorityPolicy.sources,
|
||||
}),
|
||||
CultMesh.surfaceDiagnostic("state-pointer", documents.starbridgeSession.documentId, {
|
||||
routeHint: documents.starbridgeSession.routeHint,
|
||||
sources: documents.starbridgeSession.sources,
|
||||
}),
|
||||
CultMesh.describeSurface(handles.mapViewport),
|
||||
CultMesh.describeSurface(handles.objectsViewport),
|
||||
CultMesh.describeSurface(handles.gravityViewport),
|
||||
|
|
@ -1982,7 +2000,7 @@ export function createAetheriaRuntimeRtsVerseFacade(
|
|||
commandVerse: CultMeshVerseContext,
|
||||
queries: ReturnType<typeof createAetheriaRuntimeRtsQueryHandles>,
|
||||
operations: AetheriaRuntimeRtsOperationHandles,
|
||||
statePointers: AetheriaRuntimeRtsStatePointers = createAetheriaRuntimeRtsStatePointers(),
|
||||
documents: AetheriaRuntimeRtsDocuments = createAetheriaRuntimeRtsDocuments(),
|
||||
) {
|
||||
const mapViewport = CultMesh.bindQuery(queryVerse, queries.mapViewport);
|
||||
const objectsViewport = CultMesh.bindQuery(queryVerse, queries.objectsViewport);
|
||||
|
|
@ -1992,10 +2010,10 @@ export function createAetheriaRuntimeRtsVerseFacade(
|
|||
const daemonHealth = CultMesh.bindQuery(queryVerse, queries.daemonHealth);
|
||||
const authorityStatus = CultMesh.bindQuery(queryVerse, queries.authorityStatus);
|
||||
const starbridgeSession = CultMesh.bindQuery(queryVerse, queries.starbridgeSession);
|
||||
const daemonFramePointer = CultMesh.bindStatePointer(queryVerse, statePointers.daemonFrame);
|
||||
const daemonHealthPointer = CultMesh.bindStatePointer(queryVerse, statePointers.daemonHealth);
|
||||
const authorityPolicyPointer = CultMesh.bindStatePointer(queryVerse, statePointers.authorityPolicy);
|
||||
const starbridgeSessionPointer = CultMesh.bindStatePointer(queryVerse, statePointers.starbridgeSession);
|
||||
const daemonFrameDocument = CultMesh.bindDocument(queryVerse, documents.daemonFrame);
|
||||
const daemonHealthDocument = CultMesh.bindDocument(queryVerse, documents.daemonHealth);
|
||||
const authorityPolicyDocument = CultMesh.bindDocument(queryVerse, documents.authorityPolicy);
|
||||
const starbridgeSessionDocument = CultMesh.bindDocument(queryVerse, documents.starbridgeSession);
|
||||
const setMoveVector = CultMesh.bindOperation(commandVerse, operations.setMoveVector);
|
||||
const setTarget = CultMesh.bindOperation(commandVerse, operations.setTarget);
|
||||
|
||||
|
|
@ -2054,10 +2072,10 @@ export function createAetheriaRuntimeRtsVerseFacade(
|
|||
inventory.execute({ entityIndex }),
|
||||
daemon: {
|
||||
state: {
|
||||
frame: () => daemonFramePointer.resolve(),
|
||||
health: () => daemonHealthPointer.resolve(),
|
||||
authorityPolicy: () => authorityPolicyPointer.resolve(),
|
||||
starbridgeSession: () => starbridgeSessionPointer.resolve(),
|
||||
frame: () => daemonFrameDocument.latest(),
|
||||
health: () => daemonHealthDocument.latest(),
|
||||
authorityPolicy: () => authorityPolicyDocument.latest(),
|
||||
starbridgeSession: () => starbridgeSessionDocument.latest(),
|
||||
},
|
||||
health: () => daemonHealth.execute(undefined),
|
||||
authorityStatus: () => authorityStatus.execute(undefined),
|
||||
|
|
|
|||
|
|
@ -543,15 +543,19 @@ export type AetheriaRuntimeRtsSurfaceCatalogDiagnostic = CultMeshSurfaceCatalogD
|
|||
|
||||
export type AetheriaRuntimeRtsOperationHandles = ReturnType<typeof createAetheriaRuntimeRtsOperationHandles>;
|
||||
|
||||
export type AetheriaRuntimeRtsStatePointers = ReturnType<typeof createAetheriaRuntimeRtsStatePointers>;
|
||||
export type AetheriaRuntimeRtsDocuments = ReturnType<typeof createAetheriaRuntimeRtsDocuments>;
|
||||
|
||||
export type AetheriaRuntimeRtsStatePointerResolvers = Partial<{
|
||||
export type AetheriaRuntimeRtsStatePointers = AetheriaRuntimeRtsDocuments;
|
||||
|
||||
export type AetheriaRuntimeRtsDocumentResolvers = Partial<{
|
||||
daemonFrame: (context: CultMeshQueryContext) => Promise<unknown>;
|
||||
daemonHealth: (context: CultMeshQueryContext) => Promise<unknown>;
|
||||
authorityPolicy: (context: CultMeshQueryContext) => Promise<unknown>;
|
||||
starbridgeSession: (context: CultMeshQueryContext) => Promise<unknown>;
|
||||
}>;
|
||||
|
||||
export type AetheriaRuntimeRtsStatePointerResolvers = AetheriaRuntimeRtsDocumentResolvers;
|
||||
|
||||
export const AetheriaRuntimeRtsProjectionSources = {
|
||||
daemonFrame: CultMesh.projectionSource("daemon:aetheria.frame.latest.v1", {
|
||||
schemaId: AetheriaRtsSchemas.daemonFrame,
|
||||
|
|
@ -571,42 +575,42 @@ export const AetheriaRuntimeRtsProjectionSources = {
|
|||
})
|
||||
} as const;
|
||||
|
||||
export function createAetheriaRuntimeRtsStatePointers(
|
||||
export function createAetheriaRuntimeRtsDocuments(
|
||||
routeHint: CultMeshRouteHint = CultMesh.routeHint(),
|
||||
resolvers: AetheriaRuntimeRtsStatePointerResolvers = {},
|
||||
resolvers: AetheriaRuntimeRtsDocumentResolvers = {},
|
||||
) {
|
||||
return {
|
||||
daemonFrame: CultMesh.statePointer(
|
||||
daemonFrame: CultMesh.document(
|
||||
AetheriaRuntimeRtsProjectionSources.daemonFrame.sourceId,
|
||||
{ schemaId: AetheriaRtsSchemas.daemonFrame },
|
||||
async (context) => resolvers.daemonFrame?.(context),
|
||||
undefined,
|
||||
{
|
||||
routeHint,
|
||||
sources: [AetheriaRuntimeRtsProjectionSources.daemonFrame],
|
||||
},
|
||||
),
|
||||
daemonHealth: CultMesh.statePointer(
|
||||
daemonHealth: CultMesh.document(
|
||||
AetheriaRuntimeRtsProjectionSources.daemonHealth.sourceId,
|
||||
{ schemaId: AetheriaRtsSchemas.daemonHealth },
|
||||
async (context) => resolvers.daemonHealth?.(context),
|
||||
undefined,
|
||||
{
|
||||
routeHint,
|
||||
sources: [AetheriaRuntimeRtsProjectionSources.daemonHealth],
|
||||
},
|
||||
),
|
||||
authorityPolicy: CultMesh.statePointer(
|
||||
authorityPolicy: CultMesh.document(
|
||||
AetheriaRuntimeRtsProjectionSources.authorityPolicy.sourceId,
|
||||
{ schemaId: AetheriaRtsSchemas.verseAuthorityPolicy },
|
||||
async (context) => resolvers.authorityPolicy?.(context),
|
||||
undefined,
|
||||
{
|
||||
routeHint,
|
||||
sources: [AetheriaRuntimeRtsProjectionSources.authorityPolicy],
|
||||
},
|
||||
),
|
||||
starbridgeSession: CultMesh.statePointer(
|
||||
starbridgeSession: CultMesh.document(
|
||||
AetheriaRuntimeRtsProjectionSources.starbridgeSession.sourceId,
|
||||
{ schemaId: AetheriaRtsSchemas.starbridgeSessionSummary },
|
||||
async (context) => resolvers.starbridgeSession?.(context),
|
||||
undefined,
|
||||
{
|
||||
routeHint,
|
||||
sources: [AetheriaRuntimeRtsProjectionSources.starbridgeSession],
|
||||
|
|
@ -615,6 +619,8 @@ export function createAetheriaRuntimeRtsStatePointers(
|
|||
} as const;
|
||||
}
|
||||
|
||||
export const createAetheriaRuntimeRtsStatePointers = createAetheriaRuntimeRtsDocuments;
|
||||
|
||||
export function createAetheriaRuntimeRtsQueryHandles(
|
||||
executors: AetheriaRuntimeRtsQueryExecutors,
|
||||
routeHint: CultMeshRouteHint = CultMesh.routeHint(),
|
||||
|
|
@ -690,15 +696,27 @@ export function describeAetheriaRuntimeRtsQueryHandles(
|
|||
export function describeAetheriaRuntimeRtsSurfaceCatalog(
|
||||
handles: ReturnType<typeof createAetheriaRuntimeRtsQueryHandles>,
|
||||
operations?: AetheriaRuntimeRtsOperationHandles,
|
||||
statePointers: AetheriaRuntimeRtsStatePointers = createAetheriaRuntimeRtsStatePointers(),
|
||||
documents: AetheriaRuntimeRtsDocuments = createAetheriaRuntimeRtsDocuments(),
|
||||
): AetheriaRuntimeRtsSurfaceCatalogDiagnostic {
|
||||
return CultMesh.describeSurfaceCatalog(
|
||||
"gamecult.aetheria.rts.surfaces.v1",
|
||||
[
|
||||
CultMesh.describeSurface(statePointers.daemonFrame),
|
||||
CultMesh.describeSurface(statePointers.daemonHealth),
|
||||
CultMesh.describeSurface(statePointers.authorityPolicy),
|
||||
CultMesh.describeSurface(statePointers.starbridgeSession),
|
||||
CultMesh.surfaceDiagnostic("state-pointer", documents.daemonFrame.documentId, {
|
||||
routeHint: documents.daemonFrame.routeHint,
|
||||
sources: documents.daemonFrame.sources,
|
||||
}),
|
||||
CultMesh.surfaceDiagnostic("state-pointer", documents.daemonHealth.documentId, {
|
||||
routeHint: documents.daemonHealth.routeHint,
|
||||
sources: documents.daemonHealth.sources,
|
||||
}),
|
||||
CultMesh.surfaceDiagnostic("state-pointer", documents.authorityPolicy.documentId, {
|
||||
routeHint: documents.authorityPolicy.routeHint,
|
||||
sources: documents.authorityPolicy.sources,
|
||||
}),
|
||||
CultMesh.surfaceDiagnostic("state-pointer", documents.starbridgeSession.documentId, {
|
||||
routeHint: documents.starbridgeSession.routeHint,
|
||||
sources: documents.starbridgeSession.sources,
|
||||
}),
|
||||
CultMesh.describeSurface(handles.mapViewport),
|
||||
CultMesh.describeSurface(handles.objectsViewport),
|
||||
CultMesh.describeSurface(handles.gravityViewport),
|
||||
|
|
@ -782,7 +800,7 @@ export function createAetheriaRuntimeRtsVerseFacade(
|
|||
commandVerse: CultMeshVerseContext,
|
||||
queries: ReturnType<typeof createAetheriaRuntimeRtsQueryHandles>,
|
||||
operations: AetheriaRuntimeRtsOperationHandles,
|
||||
statePointers: AetheriaRuntimeRtsStatePointers = createAetheriaRuntimeRtsStatePointers(),
|
||||
documents: AetheriaRuntimeRtsDocuments = createAetheriaRuntimeRtsDocuments(),
|
||||
) {
|
||||
const mapViewport = CultMesh.bindQuery(queryVerse, queries.mapViewport);
|
||||
const objectsViewport = CultMesh.bindQuery(queryVerse, queries.objectsViewport);
|
||||
|
|
@ -792,10 +810,10 @@ export function createAetheriaRuntimeRtsVerseFacade(
|
|||
const daemonHealth = CultMesh.bindQuery(queryVerse, queries.daemonHealth);
|
||||
const authorityStatus = CultMesh.bindQuery(queryVerse, queries.authorityStatus);
|
||||
const starbridgeSession = CultMesh.bindQuery(queryVerse, queries.starbridgeSession);
|
||||
const daemonFramePointer = CultMesh.bindStatePointer(queryVerse, statePointers.daemonFrame);
|
||||
const daemonHealthPointer = CultMesh.bindStatePointer(queryVerse, statePointers.daemonHealth);
|
||||
const authorityPolicyPointer = CultMesh.bindStatePointer(queryVerse, statePointers.authorityPolicy);
|
||||
const starbridgeSessionPointer = CultMesh.bindStatePointer(queryVerse, statePointers.starbridgeSession);
|
||||
const daemonFrameDocument = CultMesh.bindDocument(queryVerse, documents.daemonFrame);
|
||||
const daemonHealthDocument = CultMesh.bindDocument(queryVerse, documents.daemonHealth);
|
||||
const authorityPolicyDocument = CultMesh.bindDocument(queryVerse, documents.authorityPolicy);
|
||||
const starbridgeSessionDocument = CultMesh.bindDocument(queryVerse, documents.starbridgeSession);
|
||||
const setMoveVector = CultMesh.bindOperation(commandVerse, operations.setMoveVector);
|
||||
const setTarget = CultMesh.bindOperation(commandVerse, operations.setTarget);
|
||||
|
||||
|
|
@ -854,10 +872,10 @@ export function createAetheriaRuntimeRtsVerseFacade(
|
|||
inventory.execute({ entityIndex }),
|
||||
daemon: {
|
||||
state: {
|
||||
frame: () => daemonFramePointer.resolve(),
|
||||
health: () => daemonHealthPointer.resolve(),
|
||||
authorityPolicy: () => authorityPolicyPointer.resolve(),
|
||||
starbridgeSession: () => starbridgeSessionPointer.resolve(),
|
||||
frame: () => daemonFrameDocument.latest(),
|
||||
health: () => daemonHealthDocument.latest(),
|
||||
authorityPolicy: () => authorityPolicyDocument.latest(),
|
||||
starbridgeSession: () => starbridgeSessionDocument.latest(),
|
||||
},
|
||||
health: () => daemonHealth.execute(undefined),
|
||||
authorityStatus: () => authorityStatus.execute(undefined),
|
||||
|
|
|
|||
|
|
@ -134,8 +134,8 @@ $requiredGeneratedBindingSymbols = @(
|
|||
'AetheriaRuntimeRtsProjectionDiagnostic',
|
||||
'AetheriaRuntimeRtsLiveFeedDiagnostic',
|
||||
'AetheriaRuntimeRtsSurfaceCatalogDiagnostic',
|
||||
'AetheriaRuntimeRtsStatePointers',
|
||||
'AetheriaRuntimeRtsStatePointerResolvers',
|
||||
'AetheriaRuntimeRtsDocuments',
|
||||
'AetheriaRuntimeRtsDocumentResolvers',
|
||||
'CultMeshSurfaceCatalogDiagnostic',
|
||||
'CultMeshSurfaceCatalogIndexDiagnostic',
|
||||
'CultMeshOperationReceipt',
|
||||
|
|
@ -151,10 +151,10 @@ $requiredGeneratedBindingSymbols = @(
|
|||
'routeHint: CultMeshRouteHint',
|
||||
'CultMeshQueryWatcher',
|
||||
'AetheriaRuntimeRtsQueryWatchers',
|
||||
'createAetheriaRuntimeRtsStatePointers',
|
||||
'CultMesh.statePointer',
|
||||
'CultMesh.bindStatePointer',
|
||||
'CultMesh.describeSurface(statePointers.daemonFrame)',
|
||||
'createAetheriaRuntimeRtsDocuments',
|
||||
'CultMesh.document',
|
||||
'CultMesh.bindDocument',
|
||||
'documents.daemonFrame.documentId',
|
||||
'routeHint, watchProjection',
|
||||
'watchProjection: watchers.objectsViewport',
|
||||
'.asQuerySurface()',
|
||||
|
|
@ -215,22 +215,23 @@ if ($LASTEXITCODE -ne 0) {
|
|||
|
||||
$clientText = Get-Content Electron/aetheria-cultmesh.ts -Raw
|
||||
|
||||
if (-not $clientText.Contains('this.statePointers = createAetheriaRuntimeRtsStatePointers(') -or
|
||||
if (-not $clientText.Contains('this.documents = createAetheriaRuntimeRtsDocuments(') -or
|
||||
-not $clientText.Contains('this.queryVerse.context.routeHint,')) {
|
||||
Write-Error "Stage 7B verifier failed: RTS client is not creating generated state pointers with its shared Verse route."
|
||||
Write-Error "Stage 7B verifier failed: RTS client is not creating generated document handles with its shared Verse route."
|
||||
}
|
||||
|
||||
if (-not $clientText.Contains('daemonFrame: async () => this.fetchLatestFrameDocument()') -or
|
||||
-not $clientText.Contains('authorityPolicy: async () => this.fetchAuthorityPolicyDocument()')) {
|
||||
Write-Error "Stage 7B verifier failed: RTS client state pointers are not resolving through daemon publication readers."
|
||||
Write-Error "Stage 7B verifier failed: RTS client document handles are not resolving through daemon publication readers."
|
||||
}
|
||||
|
||||
if (-not $clientText.Contains('this.verse = CultMesh.verse("aetheria.local", this.runtimeId)')) {
|
||||
Write-Error "Stage 7B verifier failed: RTS client should bind to the shared CultMesh Verse primitive instead of constructing local contexts directly."
|
||||
}
|
||||
|
||||
if (-not $clientText.Contains('this.queryVerse = this.verse.withRoute("shared-memory"')) {
|
||||
Write-Error "Stage 7B verifier failed: RTS client is not deriving a shared-memory Verse view for local projection reads."
|
||||
if (-not $clientText.Contains('? this.verse.withRoute("network", this.publications.statePathDescription)') -or
|
||||
-not $clientText.Contains(': this.verse.withRoute("shared-memory", this.publications.statePathDescription)')) {
|
||||
Write-Error "Stage 7B verifier failed: RTS client is not deriving publication-mode Verse views for projection reads."
|
||||
}
|
||||
|
||||
if (-not $clientText.Contains('this.commandVerse = this.verse') -or
|
||||
|
|
@ -293,8 +294,8 @@ if (-not $clientText.Contains('CultMesh.surfaceCatalogIndex(this.surfaceCatalogD
|
|||
Write-Error "Stage 7B verifier failed: RTS grouped surface catalog should use the shared CultMesh catalog index primitive."
|
||||
}
|
||||
|
||||
if (-not $clientText.Contains('describeAetheriaRuntimeRtsSurfaceCatalog(this.queries, this.operations, this.statePointers)')) {
|
||||
Write-Error "Stage 7B verifier failed: RTS surface catalog should be read from generated query, operation, and state pointer metadata."
|
||||
if (-not $clientText.Contains('describeAetheriaRuntimeRtsSurfaceCatalog(this.queries, this.operations, this.documents)')) {
|
||||
Write-Error "Stage 7B verifier failed: RTS surface catalog should be read from generated query, operation, and document metadata."
|
||||
}
|
||||
|
||||
$forbiddenDirectClientOperationHits = & rg -n 'operations\.set(MoveVector|Target)\.invoke' Electron/aetheria-cultmesh.ts 2>$null
|
||||
|
|
|
|||
Loading…
Reference in a new issue