- Add /api/recordings endpoint with full CRUD operations - Create voice_recordings SQLite table for metadata - Save audio files to server/recordings/ as .webm - Store transcription, duration, microphone name, file size - Auto-save on each Whisper recording completion
17 lines
537 B
TypeScript
17 lines
537 B
TypeScript
// Server configuration
|
|
export const PORT_HTTP = 4101
|
|
export const PORT_TERMINAL = 4103
|
|
|
|
// Terminal configuration
|
|
export const WORKING_DIR = process.cwd().replace(/[\\\/]server$/, '')
|
|
export const SHELL = process.platform === 'win32' ? 'powershell.exe' : 'bash'
|
|
export const SHELL_ARGS = process.platform === 'win32' ? ['-NoLogo', '-NoProfile'] : []
|
|
export const DEFAULT_SESSION_ID = 'main'
|
|
export const MAX_BUFFER_LINES = 1000
|
|
|
|
// Database
|
|
export const DB_PATH = 'agent-ui.db'
|
|
|
|
// Recordings
|
|
export const RECORDINGS_DIR = 'recordings'
|