Files
notify/Notify/Serialization/AppJsonContext.cs
T
chuan 891128fec3 feat: WT 切标签、工具窗口化与非阻塞投递
- P1b: 点击通知切回 Windows Terminal 原标签(源生成 COM UIAutomation,AOT 友好)
- Toast 设为工具窗口(WS_EX_TOOLWINDOW),从任务栏与 Alt+Tab 隐藏
- 投递改为落盘队列 spool + FileSystemWatcher,CLI 毫秒级返回不阻塞 Claude Code
- 移除命名管道(PipeServer/PipeClient/PipeMessage),新增 NotificationSpool/SpoolWatcher
- NativeAOT 发布配置 + scripts/build.bat(vcvars 自动配置 MSVC 工具链)
- .gitattributes 保证 .bat 用 CRLF
2026-06-22 15:47:08 +08:00

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;