package main import ( "fmt" "os" "chorus/internal/runtime" ) // DEPRECATED: This binary is deprecated in favor of chorus-agent and chorus-hap // This compatibility wrapper redirects users to the appropriate new binary func main() { // Early CLI handling: print help/version/deprecation notice for _, a := range os.Args[1:] { switch a { case "--help", "-h", "help": printDeprecationHelp() return case "--version", "-v": fmt.Printf("%s %s (DEPRECATED)\n", runtime.AppName, runtime.AppVersion) return } } // Print deprecation warning for direct execution printDeprecationWarning() os.Exit(1) } func printDeprecationHelp() { fmt.Printf("⚠️ %s %s - DEPRECATED BINARY\n\n", runtime.AppName, runtime.AppVersion) fmt.Println("This binary has been replaced by specialized binaries:") fmt.Println() fmt.Println("🤖 chorus-agent - Autonomous AI agent for task coordination") fmt.Println("👤 chorus-hap - Human Agent Portal for human participation") fmt.Println() fmt.Println("Migration Guide:") fmt.Println(" OLD: ./chorus") fmt.Println(" NEW: ./chorus-agent (for autonomous agents)") fmt.Println(" ./chorus-hap (for human agents)") fmt.Println() fmt.Println("Why this change?") fmt.Println(" - Enables human participation in agent networks") fmt.Println(" - Better separation of concerns") fmt.Println(" - Specialized interfaces for different use cases") fmt.Println(" - Shared P2P infrastructure with different UIs") fmt.Println() fmt.Println("For help with the new binaries:") fmt.Println(" ./chorus-agent --help") fmt.Println(" ./chorus-hap --help") } func printDeprecationWarning() { fmt.Fprintf(os.Stderr, "⚠️ DEPRECATION WARNING: The 'chorus' binary is deprecated!\n\n") fmt.Fprintf(os.Stderr, "This binary has been replaced with specialized binaries:\n") fmt.Fprintf(os.Stderr, " 🤖 chorus-agent - For autonomous AI agents\n") fmt.Fprintf(os.Stderr, " 👤 chorus-hap - For human agent participation\n\n") fmt.Fprintf(os.Stderr, "Please use one of the new binaries instead:\n") fmt.Fprintf(os.Stderr, " ./chorus-agent --help\n") fmt.Fprintf(os.Stderr, " ./chorus-hap --help\n\n") fmt.Fprintf(os.Stderr, "This wrapper will be removed in a future version.\n") }