Merge upstream and add generic Codex notifications

This commit is contained in:
2026-08-04 15:16:36 +08:00
31 changed files with 374 additions and 218 deletions
+5 -3
View File
@@ -23,14 +23,16 @@ internal static class Program
public static int Main(string[] args)
{
var mode = args.Length > 0 ? args[0].ToLowerInvariant() : "host";
var source = args.Length > 1 ? args[1].ToLowerInvariant() : null;
// 钩子子命令:纯互操作 / IPC,不加载 Avalonia
return mode switch
{
"save" => CliRunner.Save(),
"notify" => CliRunner.Notify(),
"input" => CliRunner.Input(),
"save" => CliRunner.Save(source),
"notify" => CliRunner.Notify(source),
"input" => CliRunner.Input(source),
"cleanup" => CliRunner.Cleanup(),
"codex" => CliRunner.Codex(args.Length > 1 ? args[^1] : null),
_ => RunHost(args),
};
}