/** * 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[]; /** * Discover policies in policies.user/ directory (source installation) * Returns paths to all .rego files (excluding test files) */ export declare function discoverUserPolicies(logger: Logger): 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[]; /** * Discover policy files with priority-ordered search paths: * 1. Built-in policies/ directory (lowest priority) * 2. policies.user/ directory (middle priority - source installation users) * 3. Custom directory via CUSTOM_POLICY_PATH (highest priority - NPM users) * * Returns array of policy paths, with higher priority policies later * (later policies override earlier ones during merging) */ export declare function discoverPolicies(logger: Logger): string[]; /** * Create a tool orchestrator */ export declare function createOrchestrator>(options: { registry: Map; server?: Server; logger?: Logger; config?: OrchestratorConfig; }): ToolOrchestrator; //# sourceMappingURL=orchestrator.d.ts.map