/** * Local File System Resolver * * Resolves agents, tools, workflows, and templates from local file system: * - Project: .fractary/ * - Global: ~/.fractary/registry/ */ export type ComponentType = 'agent' | 'tool' | 'workflow' | 'template' | 'plugin'; export interface LocalComponent { /** Component name */ name: string; /** Component type */ type: ComponentType; /** Absolute path to component file or directory */ path: string; /** Whether found in project (true) or global (false) location */ isProject: boolean; /** Parent plugin name if component is part of a plugin */ plugin?: string; } /** * Get project .fractary directory */ export declare function getProjectFractaryDir(cwd?: string): string; /** * Get global ~/.fractary/registry directory */ export declare function getGlobalFractaryDir(): string; export declare class LocalResolver { private cwd; constructor(cwd?: string); /** * Find component in project directory */ private findInProject; /** * Find component in global directory */ private findInGlobal; /** * Find component in plugin (project or global) */ private findInPlugin; /** * Resolve component with priority: project → global * @param name Component name (or @plugin/component for plugin components) * @param type Component type */ resolve(name: string, type: ComponentType): Promise; /** * List all components of a given type in project directory */ listProject(type: ComponentType): Promise; /** * List all components of a given type in global directory */ listGlobal(type: ComponentType): Promise; /** * List all components of a given type (project + global) */ listAll(type: ComponentType): Promise; /** * Check if component exists locally */ exists(name: string, type: ComponentType): Promise; /** * Read component file content */ read(component: LocalComponent): Promise; /** * Read plugin manifest */ readPluginManifest(component: LocalComponent): Promise; } /** * Default local resolver instance */ export declare const localResolver: LocalResolver; //# sourceMappingURL=local-resolver.d.ts.map