// opencode-entry.ts — the opencode PLUGIN ENTRY for npm distribution. // opencode's `plugin` config resolves the package and uses its DEFAULT export // as the plugin; the implementation lives in opencode-plugin.ts (named export // OrchestratorAutopilot). This entry exists purely to give opencode the shape // it expects — no pi-adjacent code is reachable from here. // // Install: `opencode.jsonc` → "plugin": ["orchestrator-autopilot"] // Runtime prereqs (all opencode-side — NO pi-subagents dependency): // 1. The `opencode` (or `oc`) binary the backend spawns detached workers // through (AUTOPILOT_OPENCODE_BIN pins a secrets-injecting wrapper). // 2. OPENCODE_EXPERIMENTAL_BACKGROUND_SUBAGENTS=1 so those headless runs // can use async subagents (see README, opencode install section). import { OrchestratorAutopilot } from "./opencode-plugin.ts"; export default OrchestratorAutopilot;