import { z } from 'zod'; export { b as buildGuardrailContext } from '../context-DKkamYX_.js'; /** * Generator configuration — loads and validates agents.conf.yaml */ declare const DEFAULT_CONFIG_PATH = "./agents.conf.yaml"; declare const RuntimeConfigSchema: z.ZodObject<{ dsl: z.ZodDefault; generated_dir: z.ZodDefault; bindings: z.ZodDefault>; active_guardrail_policy: z.ZodOptional; templates_dir: z.ZodOptional; plugins: z.ZodDefault>; recovery: z.ZodDefault; max_retries: z.ZodDefault; }, z.core.$strip>>; model_mapping: z.ZodDefault; }, z.core.$strip>>; standard: z.ZodOptional; }, z.core.$strip>>; thinking: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; logging: z.ZodDefault>; file: z.ZodOptional; naming: z.ZodDefault>; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strip>; type RuntimeConfig = z.infer; declare const ComponentOverrideSchema: z.ZodObject<{ agents: z.ZodOptional; dsl: z.ZodOptional; component_contract: z.ZodOptional; generated_dir: z.ZodOptional; bindings: z.ZodOptional>; hooks: z.ZodOptional>; observability: z.ZodOptional; recorder: z.ZodOptional; enabled: z.ZodOptional; db_path: z.ZodOptional; otel: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>>; plugins: z.ZodOptional>; model_mapping: z.ZodOptional; }, z.core.$strip>>; standard: z.ZodOptional; }, z.core.$strip>>; thinking: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>>; recovery: z.ZodOptional; max_retries: z.ZodDefault; }, z.core.$strip>>>; templates_dir: z.ZodOptional; }, z.core.$strict>; type ComponentOverride = z.infer; declare const ProjectConfigSchema: z.ZodObject<{ schema: z.ZodOptional; agents: z.ZodOptional; dsl: z.ZodOptional; generated_dir: z.ZodOptional; bindings: z.ZodOptional>; hooks: z.ZodOptional>; observability: z.ZodOptional; recorder: z.ZodOptional; enabled: z.ZodOptional; db_path: z.ZodOptional; otel: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>>; active_guardrail_policy: z.ZodOptional; templates_dir: z.ZodOptional; plugins: z.ZodOptional>; recovery: z.ZodDefault; max_retries: z.ZodDefault; }, z.core.$strip>>; model_mapping: z.ZodDefault; }, z.core.$strip>>; standard: z.ZodOptional; }, z.core.$strip>>; thinking: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; logging: z.ZodDefault>; file: z.ZodOptional; naming: z.ZodDefault>; }, z.core.$strip>>; }, z.core.$strip>>; artifacts: z.ZodOptional; toolchains: z.ZodOptional; components: z.ZodOptional; dsl: z.ZodOptional; component_contract: z.ZodOptional; generated_dir: z.ZodOptional; bindings: z.ZodOptional>; hooks: z.ZodOptional>; observability: z.ZodOptional; recorder: z.ZodOptional; enabled: z.ZodOptional; db_path: z.ZodOptional; otel: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>>; plugins: z.ZodOptional>; model_mapping: z.ZodOptional; }, z.core.$strip>>; standard: z.ZodOptional; }, z.core.$strip>>; thinking: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>>; recovery: z.ZodOptional; max_retries: z.ZodDefault; }, z.core.$strip>>>; templates_dir: z.ZodOptional; }, z.core.$strict>>>; environments: z.ZodOptional>; }, z.core.$strip>>; cursor: z.ZodOptional; }, z.core.$strip>>; ci: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>>; cli: z.ZodOptional; dsl: z.ZodOptional; generated_dir: z.ZodOptional; plugins: z.ZodOptional>; bindings: z.ZodOptional>; hooks: z.ZodOptional>; observability: z.ZodOptional; recorder: z.ZodOptional; enabled: z.ZodOptional; db_path: z.ZodOptional; otel: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>>; }, z.core.$strict>>>; }, z.core.$strip>; type ProjectConfig = z.infer; interface ResolvedProgressLog { destination: "stderr" | "file" | "both" | "none"; file: string | undefined; naming: "single" | "per-invocation" | "daily"; } interface ResolvedEnvironments { git?: { hooks: string[]; }; cursor?: { hooks_json: string; }; ci?: { provider: string; }; } interface ResolvedObservability { eventMappingPath?: string; recorder?: string; /** Whether in-process agent-axis recording is enabled (default true when binding present). */ enabled?: boolean; /** Resolved override for the SQLite DB path (undefined → DEFAULT_DB_PATH). */ dbPath?: string; /** * OTel Collector endpoint configuration. * When present, OtelEmitter is configured with this endpoint at pipeline creation. * Falls back to OTEL_EXPORTER_OTLP_ENDPOINT env var when absent. */ otel?: { endpoint: string; }; } interface ResolvedConfig extends RuntimeConfig { configDir: string; dslPath: string; generatedDir: string; /** Resolved guardrail_impl matcher files (machine enforcement). */ bindingPaths: string[]; /** Resolved git-hook binding files (governance materialize, #68). */ hookBindingPaths: string[]; /** Observability event mapping + recorder, if configured. */ observability?: ResolvedObservability; templatesDir: string | undefined; pluginPaths: string[]; resolvedLogging: { progressLog: ResolvedProgressLog; }; artifactsPath?: string; toolchainsPath?: string; environments?: ResolvedEnvironments; componentOverrides?: Record; } declare function loadProjectConfig(configPath: string, target?: string): Promise; export { type ComponentOverride, ComponentOverrideSchema, DEFAULT_CONFIG_PATH, type ProjectConfig, ProjectConfigSchema, type ResolvedConfig, type ResolvedEnvironments, loadProjectConfig };