Refactor SSE event handling and consolidate notification contexts

This commit is contained in:
Chris Scott committed 2026-01-12 23:56:50 -05:00
1 parent 9851ec06e0
commit f7fd3176d4
30 files changed
+2226 -988

No files matched your search

+6
View File
@@ -42,6 +42,12 @@ export const DEFAULTS = {
DEBUG: false,
LOG_LEVEL: 'info',
},
SSE: {
RECONNECT_DELAY_MS: 1000,
MAX_RECONNECT_DELAY_MS: 30000,
IDLE_GRACE_PERIOD_MS: 5000,
},
} as const
export const ALLOWED_MIME_TYPES = [
+1
View File
@@ -3,3 +3,4 @@ export * from './repo'
export * from './files'
export * from './opencode'
export * from './auth'
export * from './sse'
+8
View File
@@ -0,0 +1,8 @@
import { z } from "zod";
export const SSESubscribeSchema = z.object({
clientId: z.string().min(1),
directories: z.array(z.string()),
});
export type SSESubscribeRequest = z.infer<typeof SSESubscribeSchema>;