import type { AgentDefinition } from '../types/sdk-types.js'; export type AgentSource = 'builtin' | 'user' | 'project' | 'config' | `plugin:${string}`; export interface RegisteredAgent { name: string; definition: AgentDefinition; source: AgentSource; filePath?: string; bashReadOnly?: boolean; vendoredBaseTools?: readonly string[]; ignoredKeys?: string[]; } export type AgentRegistry = ReadonlyMap; export interface ResolvedAgentToolAccess { allowedTools: string[] | undefined; bashReadOnly: boolean; droppedTokens: string[]; nestedAgentTypes?: string[]; }