/** * Tool Orchestrator * Tool execution with optional dependency resolution */ import { type ZodTypeAny } from 'zod'; import type { Server } from '@modelcontextprotocol/sdk/server/index.js'; import { type ToolOrchestrator, type OrchestratorConfig } from './orchestrator-types.js'; import type { Logger } from 'pino'; import type { Tool } from '../types/tool.js'; /** * Discover built-in policy files from the policies directory * Returns paths to all .rego files (excluding test files) * * Uses shared module path resolver with symlink support. * Works in both ESM (dist/) and CJS (dist-cjs/) builds, and when installed via npm. */ export declare function discoverBuiltInPolicies(logger: Logger): string[]; export interface DiscoveredPolicy { path: string; source: 'built-in' | 'global' | 'project' | 'legacy' | 'custom'; } export declare function discoverGlobalPolicies(logger: Logger): string[]; export declare function discoverProjectPolicies(logger: Logger, workspacePath?: string): string[]; export declare function discoverUserPolicies(logger: Logger, workspacePath?: string): string[]; /** * Discover policies in custom directory (NPM installation) * Returns paths to all .rego files (excluding test files) */ export declare function discoverCustomPolicies(customPath: string, logger: Logger): string[]; export interface PolicySearchPath { path: string; source: DiscoveredPolicy['source']; exists: boolean; } /** * Return all policy search directories with existence status. * Unlike discoverPolicies (which scans for .rego files), this returns * the directories themselves so users can see where to place policies. */ export declare function getPolicySearchPaths(logger: Logger, workspacePath?: string): PolicySearchPath[]; export declare function discoverPolicies(logger: Logger, workspacePath?: string): DiscoveredPolicy[]; export declare function discoverPolicyPaths(logger: Logger, workspacePath?: string): string[]; /** * Create a tool orchestrator */ export declare function createOrchestrator>(options: { registry: Map; server?: Server; logger?: Logger; config?: OrchestratorConfig; }): ToolOrchestrator; //# sourceMappingURL=orchestrator.d.ts.map