Files
odo/preload.js
T
taodengandClaude Opus 4.6 8cb243266c feat: add navigation sidebar + Agents Console (v0.11.0)
Add react-router-dom with HashRouter, persistent Layout with sidebar
navigation (Dashboard + Agents), and Agents Console page with agent
tree view, model selector, and workspace file browser with edit/save.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 21:37:27 +10:00

22 lines
540 B
JavaScript

'use strict';
const { contextBridge, ipcRenderer } = require('electron');
contextBridge.exposeInMainWorld('odo', {
platform: process.platform,
version: '0.11.0',
isElectron: true,
gateway: {
status: () => ipcRenderer.invoke('gateway:status'),
start: () => ipcRenderer.invoke('gateway:start'),
stop: () => ipcRenderer.invoke('gateway:stop'),
restart: () => ipcRenderer.invoke('gateway:restart'),
},
ocm: {
api: (method, path, body) =>
ipcRenderer.invoke('ocm:api', { method, path, body }),
},
});