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.

423 B
Raw Blame
import type { RtcPeerFactory } from "@pibot/link";
import { createNativeRunnerRtcFactory } from "./rtc-native.ts";
import { createProcessRtcFactory } from "./rtc-process.ts";

export function createRunnerRtcFactory(warn?: (code: string) => void): {
  createPeer: RtcPeerFactory;
  close(): Promise<void>;
} {
  return process.platform === "win32"
    ? createProcessRtcFactory(warn)
    : createNativeRunnerRtcFactory();
}