Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

524 B
Raw Blame
/**
 * Minimal `electron` module stub for importing voice-service.ts under
 * `node --test`: the service itself only touches `app` (in the
 * createVoiceService wrapper) and `BrowserWindow` as a type, while
 * audio-backend.ts reads `systemPreferences` for the macOS microphone
 * permission path.
 */
export const app = {
  once: () => undefined,
};

export const BrowserWindow = class BrowserWindow {};

export const systemPreferences = {
  getMediaAccessStatus: () => "granted",
  askForMediaAccess: async () => true,
};