Skip to content

armgit / pibot

Public Imported from GitHub
0

Open-source, local-first AI agent team for your desktop: multi-agent group chats, computer use, browser, MCP, routines and approvals. macOS, Windows, Linux + Android. Built on pi.

374 B
Raw Blame
import { contextBridge, ipcRenderer } from "electron";

const channel = process.argv
  .find((arg) => arg.startsWith("--office-render-channel="))
  ?.split("=")[1];
if (channel) {
  contextBridge.exposeInMainWorld("officePageRenderer", {
    request: () => ipcRenderer.invoke(channel),
    finish: (result: unknown) => ipcRenderer.send(`${channel}:result`, result),
  });
}