API Reference

voxai.cli.check_node_version()

Check if Node.js version meets minimum requirements.

Raises:

SystemExit – If Node.js is not installed or version is too old.

Return type:

None

voxai.cli.ensure_ui_bootstrapped(ui_dir)

Ensure Electron UI dependencies are installed.

Parameters:

ui_dir (Path) – Path to the Electron UI directory.

Raises:

SystemExit – If npm install fails.

Return type:

None

voxai.cli.launch_ui(ui_dir)

Launch the Electron UI application.

Parameters:

ui_dir (Path) – Path to the Electron UI directory.

Raises:

SystemExit – If Electron fails to launch or exits with an error.

Return type:

NoReturn

voxai.cli.main()

Main entry point for VoxAI application.

Coordinates the startup sequence: 1. Validates Node.js version requirements 2. Starts the Python backend process 3. Sets up log forwarding from backend to frontend 4. Launches the Electron UI (blocking call) 5. Cleans up backend process on UI exit

Return type:

None