feat: ship Wave 5-6 multi-surface hygiene, optimization, and bug fixes

This commit is contained in:
Yun Chan 2026-11-14 11:51:41 +09:00
parent 01ef3293cf
commit 66b6b45ba9
399 changed files with 17828 additions and 11330 deletions

View file

@ -11,10 +11,14 @@ export interface OpenAiRealtimeProviderOptions {
/** 호출마다 읽는다 — 시크릿 교체가 재배포 없이 반영되도록. 빈 문자열이면 미설정. */
readApiKey(): string
fetchImpl?: typeof fetch
timeoutMs?: number
}
const DEFAULT_REALTIME_TIMEOUT_MS = 15_000
export function createOpenAiRealtimeProvider(options: OpenAiRealtimeProviderOptions): RealtimeProviderPort {
const fetchImpl = options.fetchImpl ?? fetch
const timeoutMs = options.timeoutMs ?? DEFAULT_REALTIME_TIMEOUT_MS
return {
isConfigured(): boolean {
@ -35,6 +39,7 @@ export function createOpenAiRealtimeProvider(options: OpenAiRealtimeProviderOpti
'OpenAI-Safety-Identifier': userId,
},
body: JSON.stringify({ session }),
signal: AbortSignal.timeout(timeoutMs),
})
} catch {
return { ok: false, reason: 'network' }