Files
my-pi/pi-notify/src/types.ts
T

25 lines
649 B
TypeScript

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>;