import type { Plugin } from "@opencode-ai/plugin"; import { closeTool } from "./tools/close"; import { openTool } from "./tools/open"; /** * OpenCode plugin that provides multi-model tmux session management tools. * * Registers two tools: * - `multi-model-open`: Launch multiple AI models in a tmux session * - `multi-model-close`: Close a multi-model session and cleanup resources * * @example * ```json * // opencode.json * { * "plugin": ["@username/opencode-multi-model"] * } * ``` */ const OpenCodeMultiModelPlugin: Plugin = async (_ctx) => { return { tool: { "multi-model-open": openTool, "multi-model-close": closeTool, }, }; }; export default OpenCodeMultiModelPlugin; export * from "./core/index"; export * from "./types"; export { closeTool, openTool };