TIA / holo3d /ui /commandCentre.ts
DJ-Goanna-Coding's picture
Upload folder using huggingface_hub
fa3ed75 verified
/**
* Citadel Command Centre UI Hook
* Provides real-time data feeds from TIA, AION, ORACLE, and the Interlink
* to the Holo3D interface. Non-rendering. Pure data layer.
*/
import { getWorkerStatus } from "../../../TIA/worker";
import { getMode } from "../../../TIA/mode";
import { getInterlinkState } from "../../../../interlink";
export interface CommandCentreSnapshot {
timestamp: number;
tiaMode: string;
worker: {
running: boolean;
lastCycle: number | null;
cyclesCompleted: number;
};
interlink: {
lastMessage: any;
historyLength: number;
};
}
export function getCommandCentreSnapshot(): CommandCentreSnapshot {
const worker = getWorkerStatus();
const mode = getMode();
const interlink = getInterlinkState();
return {
timestamp: Date.now(),
tiaMode: mode.current,
worker: {
running: worker.running,
lastCycle: worker.lastCycle,
cyclesCompleted: worker.cyclesCompleted,
},
interlink: {
lastMessage: interlink.lastMessage,
historyLength: interlink.history.length,
},
};
}