universal-life-protocol-core
Version:
Revolutionary AI framework implementing living, conscious digital reality with meta-cognitive reasoning, attention economics, and autonomous learning
61 lines • 1.41 kB
TypeScript
import { CuePeer } from './cue-peer.js';
import { CUE_Event } from './types.js';
/**
* Simple in-memory network simulation for testing the CUE system
*/
export declare class CueNetwork {
private peers;
private eventLog;
constructor();
/**
* Add a peer to the network
*/
addPeer(peer: CuePeer): void;
/**
* Remove a peer from the network
*/
removePeer(peerId: string): boolean;
/**
* Propagate an event to all peers except the sender
*/
private propagateEvent;
/**
* Get all peers in the network
*/
getPeers(): CuePeer[];
/**
* Get a specific peer by ID
*/
getPeer(peerId: string): CuePeer | undefined;
/**
* Get the full event log
*/
getEventLog(): CUE_Event[];
/**
* Clear the event log
*/
clearEventLog(): void;
/**
* Get network statistics
*/
getStats(): {
peerCount: number;
totalEvents: number;
eventsByType: {
[type: string]: number;
};
};
/**
* Run a simulation step on all peers
*/
simulationStep(): void;
/**
* Initialize CTL consensus for peers with enough validators
*/
initializeConsensus(): void;
/**
* Run a consensus round across all peers
*/
runConsensusRound(roundSeed?: string): void;
}
//# sourceMappingURL=cue-network.d.ts.map