nexus-agents 2.48.0 → 2.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3563,6 +3563,57 @@ function createEvent(topic, payload, options) {
3563
3563
  };
3564
3564
  }
3565
3565
 
3566
+ // src/agents/collaboration/event-bus-topics.ts
3567
+ var EventTopics = {
3568
+ // Session events
3569
+ SESSION_CREATED: "session.created",
3570
+ SESSION_STATUS_CHANGED: "session.status_changed",
3571
+ SESSION_PARTICIPANT_JOINED: "session.participant_joined",
3572
+ SESSION_RESULT_SUBMITTED: "session.result_submitted",
3573
+ SESSION_FINALIZED: "session.finalized",
3574
+ SESSION_ALL: "session.*",
3575
+ // Message events
3576
+ MESSAGE_SENT: "message.sent",
3577
+ MESSAGE_RECEIVED: "message.received",
3578
+ MESSAGE_ALL: "message.*",
3579
+ // Agent events
3580
+ AGENT_TASK_DELEGATED: "agent.task_delegated",
3581
+ AGENT_RESULT_BROADCAST: "agent.result_broadcast",
3582
+ AGENT_ALL: "agent.*",
3583
+ // Consensus events
3584
+ CONSENSUS_VOTE_REQUESTED: "consensus.vote_requested",
3585
+ CONSENSUS_VOTE_CAST: "consensus.vote_cast",
3586
+ CONSENSUS_REACHED: "consensus.reached",
3587
+ CONSENSUS_ALL: "consensus.*",
3588
+ // Protocol events
3589
+ PROTOCOL_STARTED: "protocol.started",
3590
+ PROTOCOL_ITERATION: "protocol.iteration",
3591
+ PROTOCOL_COMPLETED: "protocol.completed",
3592
+ PROTOCOL_ALL: "protocol.*",
3593
+ // Aegean phase events (Issue #216)
3594
+ AEGEAN_ROUND_STARTED: "protocol.aegean.round_started",
3595
+ AEGEAN_VOTE_COLLECTED: "protocol.aegean.vote_collected",
3596
+ AEGEAN_QUORUM_DETECTED: "protocol.aegean.quorum_detected",
3597
+ AEGEAN_ALL: "protocol.aegean.*",
3598
+ // Reflexion phase events (Issue #216)
3599
+ REFLEXION_CRITIQUE_STARTED: "protocol.reflexion.critique_started",
3600
+ REFLEXION_CRITIQUE_COMPLETED: "protocol.reflexion.critique_completed",
3601
+ REFLEXION_SYNTHESIS: "protocol.reflexion.synthesis",
3602
+ REFLEXION_ALL: "protocol.reflexion.*",
3603
+ // Trinity phase events (Issue #216)
3604
+ TRINITY_PHASE_STARTED: "protocol.trinity.phase_started",
3605
+ TRINITY_PHASE_COMPLETED: "protocol.trinity.phase_completed",
3606
+ TRINITY_ALL: "protocol.trinity.*",
3607
+ // Byzantine detection events (Issue #218)
3608
+ BYZANTINE_WEIGHT_UPDATED: "byzantine.weight_updated",
3609
+ BYZANTINE_PATTERN_DETECTED: "byzantine.pattern_detected",
3610
+ BYZANTINE_AGENT_FLAGGED: "byzantine.agent_flagged",
3611
+ BYZANTINE_COLLUSION_SUSPECTED: "byzantine.collusion_suspected",
3612
+ BYZANTINE_ALL: "byzantine.*",
3613
+ // Wildcard
3614
+ ALL: "*"
3615
+ };
3616
+
3566
3617
  // src/adapters/resilient-adapter.ts
3567
3618
  function createResilientAdapter(config) {
3568
3619
  return new ResilientAdapter(config);
@@ -12333,7 +12384,7 @@ function recordVoteOutcomes(votes) {
12333
12384
  const cliName = vote.cli !== void 0 && CLI_NAMES.includes(vote.cli) ? vote.cli : DEFAULT_CLI;
12334
12385
  const voteSuccess = vote.source === "llm";
12335
12386
  store.append({
12336
- id: `vote-${String(Date.now())}-${Math.random().toString(36).slice(2, 8)}`,
12387
+ id: `vote-${String(getTimeProvider().now())}-${getRandomProvider().random().toString(36).slice(2, 8)}`,
12337
12388
  cli: cliName,
12338
12389
  category: "planning",
12339
12390
  model: "consensus",
@@ -12773,6 +12824,7 @@ export {
12773
12824
  SdkAdapter,
12774
12825
  getGlobalEventBus,
12775
12826
  createEvent,
12827
+ EventTopics,
12776
12828
  createUnifiedRegistry,
12777
12829
  getGlobalRegistry,
12778
12830
  DEFAULT_RELEVANCE_CONFIG,
@@ -12879,4 +12931,4 @@ export {
12879
12931
  CONSENSUS_VOTE_OUTPUT_SCHEMA,
12880
12932
  registerConsensusVoteTool
12881
12933
  };
12882
- //# sourceMappingURL=chunk-KC3NUWZT.js.map
12934
+ //# sourceMappingURL=chunk-CYTWXE7N.js.map