mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
Refactor SSE event handling and consolidate notification contexts
This commit is contained in:
1 parent
9851ec06e0
commit
f7fd3176d4
30 files changed
+2226
-988
No files matched your search
@@ -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 = [
|
||||
|
||||
@@ -3,3 +3,4 @@ export * from './repo'
|
||||
export * from './files'
|
||||
export * from './opencode'
|
||||
export * from './auth'
|
||||
export * from './sse'
|
||||
@@ -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>;
|
||||
Reference in new issue
Block a user