891128fec3
- 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
32 lines
881 B
C#
32 lines
881 B
C#
namespace Notify.Models;
|
|
|
|
/// <summary>
|
|
/// 一次弹窗请求(后续由 hook / named pipe 投递)
|
|
/// </summary>
|
|
public sealed class ToastRequest
|
|
{
|
|
public required string Title { get; init; }
|
|
|
|
public required string Message { get; init; }
|
|
|
|
/// <summary>
|
|
/// true = 需要输入(黄色边框),false = 任务完成(橙色边框)
|
|
/// </summary>
|
|
public bool InputMode { get; init; }
|
|
|
|
/// <summary>
|
|
/// true = 常驻:不自动消失,只能点击 / ✕ 关闭
|
|
/// </summary>
|
|
public bool Sticky { get; init; }
|
|
|
|
/// <summary>
|
|
/// 点击 toast 主体时要激活的窗口句柄,0 表示不激活
|
|
/// </summary>
|
|
public long TargetHwnd { get; init; }
|
|
|
|
/// <summary>
|
|
/// 目标若为 Windows Terminal,激活后要切回的标签 RuntimeId
|
|
/// </summary>
|
|
public string? WtRuntimeId { get; init; }
|
|
}
|