push architecture slice 1: core event bus + /api/events SSE channel (notify->fetch infra, no consumers yet)

This commit is contained in:
amosblomqvist
2026-10-02 17:04:22 +03:00
parent a85087528e
commit 78c7393909
5 changed files with 314 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
/**
* THE NOTIFICATION CHANNEL ROUTE (push-architecture slice 1, 2026-10-02):
* one SSE connection per open window over the core event bus — the
* endpoint every future consumer (chat view, sidebar, activity dock)
* subscribes to as the polls retire. The response plumbing lives in the
* server seam (events-stream.ts); the framework route stays a thin
* wrapper (the import law; tests drive the seam directly).
*/
import { eventsResponse } from "@/src/server";
export const dynamic = "force-dynamic";
export function GET(): Response {
return eventsResponse();
}