export interface ValidateOptions { config?: unknown; checkFiles?: boolean; } export type ValidateExitCode = 0 | 1 | 2 | 3; export type ValidateExitResult = { exitCode: 0; } | { exitCode: 1; } | { exitCode: 2; } | { exitCode: 3; }; export interface ResolveOptions { config?: unknown; format?: "yaml" | "json"; } export type ResolveExitCode = 0 | 1 | 3; export type ResolveExitResult = { exitCode: 0; } | { exitCode: 1; } | { exitCode: 3; }; export interface ListOptions { config?: unknown; authority?: "canonical" | "derived" | "generated" | "control"; path?: unknown; format?: "text" | "json" | "yaml"; } export type ListExitCode = 0 | 1 | 3; export type ListExitResult = { exitCode: 0; } | { exitCode: 1; } | { exitCode: 3; }; export interface ExplainArgs { path: unknown; } export interface ExplainOptions { config?: unknown; format?: "text" | "json" | "yaml"; } export type ExplainExitCode = 0 | 2 | 3 | 4; export type ExplainExitResult = { exitCode: 0; } | { exitCode: 2; } | { exitCode: 3; } | { exitCode: 4; }; export interface AuditOptions { config?: unknown; adapter?: "mock" | "openai" | "claude" | "gemini"; model?: unknown; showPrompt?: boolean; dryRun?: boolean; failOn?: "info" | "warning" | "error" | "critical"; output?: unknown; reportFormat?: "text" | "json" | "yaml"; logFile?: string; } export type AuditExitCode = 0 | 1 | 3 | 10 | 11 | 12; export type AuditExitResult = { exitCode: 0; } | { exitCode: 1; } | { exitCode: 3; } | { exitCode: 10; } | { exitCode: 11; } | { exitCode: 12; }; export interface DiscoverOptions { adapter?: "mock" | "openai" | "claude" | "gemini"; model?: unknown; showPrompt?: boolean; dryRun?: boolean; write?: boolean; output?: unknown; reportFormat?: "yaml" | "json"; logFile?: string; } export type DiscoverExitCode = 0 | 1 | 3 | 11 | 12; export type DiscoverExitResult = { exitCode: 0; } | { exitCode: 1; } | { exitCode: 3; } | { exitCode: 11; } | { exitCode: 12; }; export interface AgentsOptions { format?: "yaml" | "json"; } export type AgentsExitCode = 0 | 1; export type AgentsExitResult = { exitCode: 0; stdout: unknown; } | { exitCode: 1; stderr: unknown; }; export interface AgentFinding { id: string; severity: "critical" | "error" | "warning" | "info"; category: string; title: string; description: string; location?: string; target?: string; recommendation?: string; evidence?: { kind: "schema" | "code" | "config" | "runtime" | "doc"; target?: string; location?: string; excerpt?: string; reasoning?: string; }[]; } export interface AgentAuditResult { summary: string; risk_level: "none" | "low" | "medium" | "high" | "critical"; findings: { id: string; severity: "critical" | "error" | "warning" | "info"; category: string; title: string; description: string; location?: string; target?: string; recommendation?: string; evidence?: { kind: "schema" | "code" | "config" | "runtime" | "doc"; target?: string; location?: string; excerpt?: string; reasoning?: string; }[]; }[]; recommended_actions: { action: string; priority: "high" | "medium" | "low"; description?: string; }[]; metadata?: { total_artifacts?: number; analyzed_artifacts?: number; analysis_scope?: string; }; } export interface AgentEvidence { kind: "schema" | "code" | "config" | "runtime" | "doc"; target?: string; location?: string; excerpt?: string; reasoning?: string; } export interface AgentRecommendedAction { action: string; priority: "high" | "medium" | "low"; description?: string; } export interface ResolvedDefinitions { artifact_contracts: string; system: { id: string; name?: string; }; artifacts: Record; } export interface ArtifactExplanation { id: string; type: string; authority: string; manual_edit: string; change_control: string; visibility?: string; description?: string; path_patterns?: string[]; exclude_patterns?: string[]; } export interface ArtifactDefinition { type: string; authority: "canonical" | "derived" | "generated" | "control"; manual_edit: "allowed" | "discouraged" | "forbidden"; change_control: "none" | "approval-required" | "regeneration-required"; visibility: "public" | "internal" | "private"; description?: string; path_patterns: string[]; exclude_patterns?: string[]; states?: string[]; } export interface ArtifactList { artifacts?: Record; } export interface DiscoverResult { mode: "init" | "update"; artifact_contracts_yaml: string; decisions?: { artifact_id: string; reasoning: string; }[]; trace_decisions?: { link_id: string; reasoning: string; }[]; uncategorized_files?: string[]; suggestions?: string[]; } export interface ValidationResult { valid: boolean; diagnostics: { path?: string; message: string; severity: "error" | "warning"; }[]; overlaps: { path: string; matching_artifacts: string[]; }[]; } //# sourceMappingURL=types.d.ts.map