openpod

An opencode plugin that spins up a dedicated virtual machine for each session to isolate agent work.
git clone https://unitehenry.com/git/openpod.git
Log | Files | Refs | README

index.ts (568B)


      1 import { Plugin } from "@opencode/plugin";
      2 
      3 import { registerCommand } from "./command";
      4 import { registerPrompt } from "./prompt";
      5 import { registerShell } from "./shell";
      6 import { registerController } from "./controller";
      7 import { init } from "./context";
      8 
      9 const PLUGIN_ID = "openpod";
     10 
     11 export default Plugin.define({
     12   id: PLUGIN_ID,
     13   async setup(ctx) {
     14     const openpod = await init();
     15 
     16     await registerPrompt(ctx, openpod);
     17     await registerShell(ctx, openpod);
     18     await registerCommand(ctx, openpod);
     19 
     20     return registerController(ctx, openpod);
     21   },
     22 });