import type { OhMyOpenCodeConfig } from "../config"; import type { PluginComponents } from "./plugin-components-loader"; export type AgentConfigRecord = Record | undefined> & { build?: Record; plan?: Record; }; export type ApplyAgentConfigParams = { config: Record; pluginConfig: OhMyOpenCodeConfig; ctx: { directory: string; client?: unknown; }; pluginComponents: PluginComponents; }; export type AgentSourceMap = Record | undefined>; export type AgentSources = { userAgents: AgentSourceMap; projectAgents: AgentSourceMap; opencodeGlobalAgents: AgentSourceMap; opencodeProjectAgents: AgentSourceMap; pluginAgents: AgentSourceMap; agentDefinitionAgents: AgentSourceMap; opencodeConfigAgents: AgentSourceMap; configAgent: AgentConfigRecord | undefined; customAgentSummaries: Array<{ name: string; description: string; }>; };