5ce2c8a982
为 Claude Code 提供原生 Windows toast 通知:点击跳回原窗口、切回 Windows Terminal 标签、跨虚拟桌面、调用方图标、非阻塞投递;NativeAOT 单文件分发。
15 lines
527 B
C#
15 lines
527 B
C#
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;
|