style: format extracted local services

This commit is contained in:
Sameh Khamis committed 2026-09-12 13:01:49 -07:00
1 parent 233285fe12
commit 5223b6df5b
33 files changed
+1785 -830

No files matched your search

+12 -3
View File
@@ -9,13 +9,22 @@ import { createRealtimeTokenHandler } from './openai/realtime.js';
* Keeps OPENAI_API_KEY server-side while the browser connects to the
* Realtime API over WebRTC with a short-lived secret.
*/
function openAiRealtimeProxy({ sourceRoot = defaultSourceRoot, annotationGuidance } = {}) {
function openAiRealtimeProxy({
sourceRoot = defaultSourceRoot,
annotationGuidance,
} = {}) {
function install(middlewares) {
middlewares.use('/api/openai/hud-summary', handleHudSummary);
middlewares.use('/api/realtime/debug-log', createDebugLogHandler({ sourceRoot }));
middlewares.use(
'/api/realtime/debug-log',
createDebugLogHandler({ sourceRoot }),
);
middlewares.use('/api/realtime/token', createRealtimeTokenHandler({ annotationGuidance }));
middlewares.use(
'/api/realtime/token',
createRealtimeTokenHandler({ annotationGuidance }),
);
}
return {