Aller au contenu

notification.*

Notifications système — éventuellement transférées vers Telegram (voir Pont Telegram).

MéthodeParamsRésultat
notification.create{ surfaceId?: string, title: string, body?: string, level?: "info"|"success"|"warn"|"error", sound?: string }{ id }
notification.list{ surfaceId?: string }{ notifications: Array<{ id, title, body, level, createdAt, surfaceId }> }
notification.clear{ surfaceId?: string }{ cleared: number }
notification.dismiss{ id: string }{ ok: true }

sound: "finish" joue le fichier audio/finish.mp3 fourni avec l’application.

MéthodeCLI
notification.createht notify --title "<t>" --body "<b>" --level <level> --sound finish
notification.listht list-notifications
notification.clearht clear-notifications
notification.dismiss(aucune CLI directe — utilisez clear-notifications pour le traitement en lot)