using Agc.Unity.Attach; if (args.Length != 0) { Console.Error.WriteLine("The Unity helper accepts only controlled NDJSON requests on standard input."); return 2; } await using var host = new HelperHost(new AttachBackend()); try { await ProtocolServer.RunAsync(Console.OpenStandardInput(), Console.OpenStandardOutput(), host); return 0; } catch (IOException) { // A closed host pipe must never cause reconnection or replay. return 1; }