mirror of
https://github.com/dtzp555-max/odo.git
synced 2026-07-19 09:44:37 +00:00
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>
22 lines
540 B
JavaScript
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 }),
|
|
},
|
|
});
|