feat: Claude Code 原生 Windows 通知(C# / .NET 10 + Avalonia 12)
为 Claude Code 提供原生 Windows toast 通知:点击跳回原窗口、切回 Windows Terminal 标签、跨虚拟桌面、调用方图标、非阻塞投递;NativeAOT 单文件分发。
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
namespace Notify.Models;
|
||||
|
||||
/// <summary>
|
||||
/// 每会话持久化的状态,由 save 钩子写入、notify 钩子与点击激活读取
|
||||
/// </summary>
|
||||
public sealed class StateData
|
||||
{
|
||||
// 触发时的前台窗口句柄
|
||||
public long Hwnd { get; set; }
|
||||
|
||||
// 用户当次输入的 prompt,用作"任务完成"通知的正文
|
||||
public string Prompt { get; set; } = "";
|
||||
|
||||
// 若前台是 Windows Terminal,记录当时选中标签的 RuntimeId,用于点击后切回
|
||||
public string WtRuntimeId { get; set; } = "";
|
||||
|
||||
// 调用方 App 的 exe 路径,用于提取并显示其图标
|
||||
public string CallerExePath { get; set; } = "";
|
||||
}
|
||||
Reference in New Issue
Block a user