an open-source alternative to the dots, bots and muses of the world, run an office of claude code/codex like agents on your laptop, sandboxes or anywhere, uses your existing subscriptions
HTML agent-harnessagent-orchestrationagentsai-agentsautonomous-agentsclaude-codecodexcoding-agentsdesktop-appdeveloper-toolselectrongemini-cliharnessharness-engineeringlocal-firstmemorymulti-agentopencodeorchestrationtypescript
feat(preload): expose setNotifications bridge for desktop notifications toggle
Chaitanya Giricd175468d537
diff --git a/src/preload/index.ts b/src/preload/index.tsindex 42e5960a..d4535bd6 100644--- a/src/preload/index.ts+++ b/src/preload/index.ts@@ -65,6 +65,7 @@ export interface HarnessConfig {defaultModel?: string;semanticMemory: boolean;embeddingModel: 'minilm' | 'embeddinggemma';+ notifications?: boolean;}export interface MemoryStatus {@@ -219,7 +220,12 @@ const api = {// ─── Reset ─────────────────────────────────────────────────────────────────/** Wipe all hive data + the memory palace, reset config, and relaunch the app* into onboarding. The process exits, so this promise never resolves. */- resetAll: (): Promise<void> => ipcRenderer.invoke('app:resetAll')+ resetAll: (): Promise<void> => ipcRenderer.invoke('app:resetAll'),++ // ─── Desktop notifications ───────────────────────────────────────────────────+ /** Toggle native desktop notifications for agent lifecycle events. */+ setNotifications: (v: boolean): Promise<HarnessConfig> =>+ ipcRenderer.invoke('app:setNotifications', v)};contextBridge.exposeInMainWorld('cth', api);