Files
oh-my-opencode/src/plugin/types.ts
T

16 lines
548 B
TypeScript
Raw Normal View History

import type { Plugin, ToolDefinition } from "@opencode-ai/plugin"
export type PluginContext = Parameters<Plugin>[0]
export type PluginInstance = Awaited<ReturnType<Plugin>>
export type PluginInterface = Omit<PluginInstance, "experimental.session.compacting">
export type ToolsRecord = Record<string, ToolDefinition>
export type TmuxConfig = {
enabled: boolean
layout: "main-horizontal" | "main-vertical" | "tiled" | "even-horizontal" | "even-vertical"
main_pane_size: number
main_pane_min_width: number
agent_pane_min_width: number
}