feat: Claude Code 原生 Windows 通知(C# / .NET 10 + Avalonia 12)
为 Claude Code 提供原生 Windows toast 通知:点击跳回原窗口、切回 Windows Terminal 标签、跨虚拟桌面、调用方图标、非阻塞投递;NativeAOT 单文件分发。
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using Notify.Cli;
|
||||
using Notify.Ipc;
|
||||
using Notify.Models;
|
||||
|
||||
namespace Notify.Serialization;
|
||||
|
||||
// System.Text.Json 源生成:为后续 NativeAOT 准备,避免反射序列化被裁剪
|
||||
[JsonSourceGenerationOptions(WriteIndented = true, UseStringEnumConverter = true)]
|
||||
[JsonSerializable(typeof(ToastSettings))]
|
||||
[JsonSerializable(typeof(StateData))]
|
||||
[JsonSerializable(typeof(HookInput))]
|
||||
[JsonSerializable(typeof(NotifyMessage))]
|
||||
internal partial class AppJsonContext : JsonSerializerContext;
|
||||
Reference in New Issue
Block a user