feat: add Kitty-aware completion notifications

This commit is contained in:
叶林立
2026-08-24 20:13:12 +08:00
parent d3bf562189
commit d65ce3800c
24 changed files with 3120 additions and 1 deletions
+24
View File
@@ -0,0 +1,24 @@
export type MessageSource = "user" | "assistant" | "none";
export type KittyVisibility = "always" | "unfocused" | "invisible";
export type NotificationAction = "focus" | "none";
export type NotificationBackend = "kitty" | "apple-script" | "osc-777";
export type NotifyConfig = {
enabled: boolean;
title: string;
body: string;
durationMs: number;
minDurationMs: number;
notificationId: string;
visibility: KittyVisibility;
action: NotificationAction;
soundCommand?: string;
};
export type NotificationRuntimeValues = {
notificationId: string;
toolErrorCount?: number;
};
export type TemplateValues = Record<string, string>;