feat(FN-4178): add room message notification delivery
This merge implements room message notifications across the system, adding a core room event type, wiring the notification dispatcher to room activity, and delivering notifications via ntfy and webhook providers with updated settings UI and API routes. Fusion-Task-Id: FN-4178
This commit is contained in:
@@ -344,6 +344,7 @@ describe("GlobalSettingsStore", () => {
|
||||
"planning-awaiting-input",
|
||||
"message:agent-to-user",
|
||||
"message:agent-to-agent",
|
||||
"message:room",
|
||||
"gridlock",
|
||||
"fallback-used",
|
||||
"memory-dreams-processed",
|
||||
|
||||
@@ -154,6 +154,7 @@ describe("NotificationDispatcher", () => {
|
||||
"planning-awaiting-input",
|
||||
"message:agent-to-user",
|
||||
"message:agent-to-agent",
|
||||
"message:room",
|
||||
"gridlock",
|
||||
"fallback-used",
|
||||
"memory-dreams-processed",
|
||||
|
||||
@@ -33,6 +33,7 @@ export const DEFAULT_GLOBAL_SETTINGS = {
|
||||
"planning-awaiting-input",
|
||||
"message:agent-to-user",
|
||||
"message:agent-to-agent",
|
||||
"message:room",
|
||||
"gridlock",
|
||||
"fallback-used",
|
||||
"memory-dreams-processed",
|
||||
|
||||
@@ -258,7 +258,8 @@ export type NtfyNotificationEvent =
|
||||
| "fallback-used"
|
||||
| "memory-dreams-processed"
|
||||
| "message:agent-to-user"
|
||||
| "message:agent-to-agent";
|
||||
| "message:agent-to-agent"
|
||||
| "message:room";
|
||||
|
||||
/** Known notification event types. Providers may support additional custom events. */
|
||||
export const NOTIFICATION_EVENTS = [
|
||||
@@ -273,6 +274,7 @@ export const NOTIFICATION_EVENTS = [
|
||||
"memory-dreams-processed",
|
||||
"message:agent-to-user",
|
||||
"message:agent-to-agent",
|
||||
"message:room",
|
||||
] as const;
|
||||
|
||||
/** Notification event type. Known events plus provider-specific custom events. */
|
||||
|
||||
Reference in New Issue
Block a user