Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
/**
* 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,
};