Files
chuan 5ce2c8a982 feat: Claude Code 原生 Windows 通知(C# / .NET 10 + Avalonia 12)
为 Claude Code 提供原生 Windows toast 通知:点击跳回原窗口、切回 Windows
Terminal 标签、跨虚拟桌面、调用方图标、非阻塞投递;NativeAOT 单文件分发。
2026-06-22 18:05:15 +08:00

25 lines
576 B
C#

using System.Text.Json.Serialization;
namespace Notify.Cli;
/// <summary>
/// Claude Code 钩子经 stdin 传入的 JSON
/// </summary>
public sealed class HookInput
{
[JsonPropertyName("session_id")]
public string? SessionId { get; set; }
[JsonPropertyName("prompt")]
public string? Prompt { get; set; }
[JsonPropertyName("notification_type")]
public string? NotificationType { get; set; }
[JsonPropertyName("message")]
public string? Message { get; set; }
[JsonPropertyName("tool_name")]
public string? ToolName { get; set; }
}