Prepare for v2 development: Add MCP integration and future development planning
- Add FUTURE_DEVELOPMENT.md with comprehensive v2 protocol specification - Add MCP integration design and implementation foundation - Add infrastructure and deployment configurations - Update system architecture for v2 evolution 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -20,7 +20,7 @@ func main() {
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
defer cancel()
|
||||
|
||||
fmt.Println("🔬 Starting Bzzz Antennae Coordination Test with Monitoring")
|
||||
fmt.Println("🔬 Starting Bzzz HMMM Coordination Test with Monitoring")
|
||||
fmt.Println("==========================================================")
|
||||
|
||||
// Initialize P2P node for testing
|
||||
@@ -40,16 +40,16 @@ func main() {
|
||||
defer mdnsDiscovery.Close()
|
||||
|
||||
// Initialize PubSub for test coordination
|
||||
ps, err := pubsub.NewPubSub(ctx, node.Host(), "bzzz/test/coordination", "antennae/test/meta-discussion")
|
||||
ps, err := pubsub.NewPubSub(ctx, node.Host(), "bzzz/test/coordination", "hmmm/test/meta-discussion")
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to create test PubSub: %v", err)
|
||||
}
|
||||
defer ps.Close()
|
||||
|
||||
// Initialize Antennae Monitor
|
||||
monitor, err := monitoring.NewAntennaeMonitor(ctx, ps, "/tmp/bzzz_logs")
|
||||
// Initialize HMMM Monitor
|
||||
monitor, err := monitoring.NewHmmmMonitor(ctx, ps, "/tmp/bzzz_logs")
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to create antennae monitor: %v", err)
|
||||
log.Fatalf("Failed to create HMMM monitor: %v", err)
|
||||
}
|
||||
defer monitor.Stop()
|
||||
|
||||
@@ -70,7 +70,7 @@ func main() {
|
||||
fmt.Println("🎯 Running coordination scenarios...")
|
||||
runCoordinationTest(ctx, ps, simulator)
|
||||
|
||||
fmt.Println("📊 Monitoring antennae activity...")
|
||||
fmt.Println("📊 Monitoring HMMM activity...")
|
||||
fmt.Println(" - Task announcements every 45 seconds")
|
||||
fmt.Println(" - Coordination scenarios every 2 minutes")
|
||||
fmt.Println(" - Agent responses every 30 seconds")
|
||||
@@ -127,7 +127,7 @@ func runCoordinationTest(ctx context.Context, ps *pubsub.PubSub, simulator *test
|
||||
"started_at": time.Now().Unix(),
|
||||
}
|
||||
|
||||
if err := ps.PublishAntennaeMessage(pubsub.CoordinationRequest, scenarioData); err != nil {
|
||||
if err := ps.PublishHmmmMessage(pubsub.CoordinationRequest, scenarioData); err != nil {
|
||||
fmt.Printf("❌ Failed to publish scenario start: %v\n", err)
|
||||
return
|
||||
}
|
||||
@@ -204,7 +204,7 @@ func simulateAgentResponses(ctx context.Context, ps *pubsub.PubSub, scenario tes
|
||||
fmt.Printf(" 🤖 Agent response %d/%d: %s\n",
|
||||
i+1, len(responses), response["message"])
|
||||
|
||||
if err := ps.PublishAntennaeMessage(pubsub.MetaDiscussion, response); err != nil {
|
||||
if err := ps.PublishHmmmMessage(pubsub.MetaDiscussion, response); err != nil {
|
||||
fmt.Printf("❌ Failed to publish agent response: %v\n", err)
|
||||
}
|
||||
|
||||
@@ -226,15 +226,15 @@ func simulateAgentResponses(ctx context.Context, ps *pubsub.PubSub, scenario tes
|
||||
}
|
||||
|
||||
fmt.Println(" ✅ Consensus reached on coordination plan")
|
||||
if err := ps.PublishAntennaeMessage(pubsub.CoordinationComplete, consensus); err != nil {
|
||||
if err := ps.PublishHmmmMessage(pubsub.CoordinationComplete, consensus); err != nil {
|
||||
fmt.Printf("❌ Failed to publish consensus: %v\n", err)
|
||||
}
|
||||
}
|
||||
|
||||
// printFinalResults shows the final monitoring results
|
||||
func printFinalResults(monitor *monitoring.AntennaeMonitor) {
|
||||
func printFinalResults(monitor *monitoring.HmmmMonitor) {
|
||||
fmt.Println("\n" + "="*60)
|
||||
fmt.Println("📊 FINAL ANTENNAE MONITORING RESULTS")
|
||||
fmt.Println("📊 FINAL HMMM MONITORING RESULTS")
|
||||
fmt.Println("="*60)
|
||||
|
||||
metrics := monitor.GetMetrics()
|
||||
|
||||
@@ -19,7 +19,7 @@ func main() {
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
defer cancel()
|
||||
|
||||
fmt.Println("🧪 Starting Bzzz Antennae Test Runner")
|
||||
fmt.Println("🧪 Starting Bzzz HMMM Test Runner")
|
||||
fmt.Println("====================================")
|
||||
|
||||
// Initialize P2P node for testing
|
||||
@@ -39,7 +39,7 @@ func main() {
|
||||
defer mdnsDiscovery.Close()
|
||||
|
||||
// Initialize PubSub for test coordination
|
||||
ps, err := pubsub.NewPubSub(ctx, node.Host(), "bzzz/test/coordination", "antennae/test/meta-discussion")
|
||||
ps, err := pubsub.NewPubSub(ctx, node.Host(), "bzzz/test/coordination", "hmmm/test/meta-discussion")
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to create test PubSub: %v", err)
|
||||
}
|
||||
@@ -114,12 +114,12 @@ func runTaskSimulator(ctx context.Context, ps *pubsub.PubSub) {
|
||||
}
|
||||
}
|
||||
|
||||
// runTestSuite runs the full antennae test suite
|
||||
// runTestSuite runs the full HMMM test suite
|
||||
func runTestSuite(ctx context.Context, ps *pubsub.PubSub) {
|
||||
fmt.Println("\n🧪 Running Antennae Test Suite")
|
||||
fmt.Println("\n🧪 Running HMMM Test Suite")
|
||||
fmt.Println("==============================")
|
||||
|
||||
testSuite := test.NewAntennaeTestSuite(ctx, ps)
|
||||
testSuite := test.NewHmmmTestSuite(ctx, ps)
|
||||
testSuite.RunFullTestSuite()
|
||||
|
||||
// Save test results
|
||||
@@ -133,7 +133,7 @@ func runInteractiveMode(ctx context.Context, ps *pubsub.PubSub, node *p2p.Node)
|
||||
fmt.Println("===========================")
|
||||
|
||||
simulator := test.NewTaskSimulator(ps, ctx)
|
||||
testSuite := test.NewAntennaeTestSuite(ctx, ps)
|
||||
testSuite := test.NewHmmmTestSuite(ctx, ps)
|
||||
|
||||
fmt.Println("Available commands:")
|
||||
fmt.Println(" 'start' - Start task simulator")
|
||||
|
||||
Reference in New Issue
Block a user