/** * Schema definition for fix-dockerfile tool */ import { z } from 'zod'; import type { ValidationResult } from '../../validation/core-types'; import type { PolicyValidationResult } from '../../lib/policy-helpers'; export declare const fixDockerfileSchema: z.ZodEffects; path: z.ZodOptional; environment: z.ZodOptional>; targetPlatform: z.ZodDefault>; workspacePath: z.ZodOptional; strictPlatformValidation: z.ZodDefault>; policyPath: z.ZodOptional; }, "strip", z.ZodTypeAny, { targetPlatform: "linux/amd64" | "linux/arm64" | "linux/arm/v7" | "linux/arm/v6" | "linux/386" | "linux/ppc64le" | "linux/s390x" | "linux/riscv64" | "windows/amd64"; strictPlatformValidation: boolean; policyPath?: string | undefined; path?: string | undefined; dockerfile?: string | undefined; environment?: "development" | "staging" | "production" | "testing" | undefined; workspacePath?: string | undefined; }, { policyPath?: string | undefined; path?: string | undefined; dockerfile?: string | undefined; environment?: "development" | "staging" | "production" | "testing" | undefined; workspacePath?: string | undefined; targetPlatform?: "linux/amd64" | "linux/arm64" | "linux/arm/v7" | "linux/arm/v6" | "linux/386" | "linux/ppc64le" | "linux/s390x" | "linux/riscv64" | "windows/amd64" | undefined; strictPlatformValidation?: boolean | undefined; }>, { targetPlatform: "linux/amd64" | "linux/arm64" | "linux/arm/v7" | "linux/arm/v6" | "linux/386" | "linux/ppc64le" | "linux/s390x" | "linux/riscv64" | "windows/amd64"; strictPlatformValidation: boolean; policyPath?: string | undefined; path?: string | undefined; dockerfile?: string | undefined; environment?: "development" | "staging" | "production" | "testing" | undefined; workspacePath?: string | undefined; }, { policyPath?: string | undefined; path?: string | undefined; dockerfile?: string | undefined; environment?: "development" | "staging" | "production" | "testing" | undefined; workspacePath?: string | undefined; targetPlatform?: "linux/amd64" | "linux/arm64" | "linux/arm/v7" | "linux/arm/v6" | "linux/386" | "linux/ppc64le" | "linux/s390x" | "linux/riscv64" | "windows/amd64" | undefined; strictPlatformValidation?: boolean | undefined; }>; export type FixDockerfileParams = z.infer; /** * Validation issue with associated fix recommendations */ export interface ValidationIssue extends ValidationResult { category?: 'security' | 'performance' | 'bestPractices'; priority?: 'high' | 'medium' | 'low'; } /** * Fix recommendation from knowledge base */ export interface FixRecommendation { id: string; issueId?: string; category: 'security' | 'performance' | 'bestPractices'; title: string; description: string; example?: string; priority: 'high' | 'medium' | 'low'; effort?: 'low' | 'medium' | 'high'; impact?: string; tags?: string[]; matchScore: number; } /** * Structured plan for fixing Dockerfile issues */ export interface DockerfileFixPlan { /** Current issues found in the Dockerfile */ currentIssues: { security: ValidationIssue[]; performance: ValidationIssue[]; bestPractices: ValidationIssue[]; }; /** Fix recommendations from knowledge base */ fixes: { security: FixRecommendation[]; performance: FixRecommendation[]; bestPractices: FixRecommendation[]; }; /** Policy validation results (if policy validation was performed) */ policyValidation?: PolicyValidationResult; /** Overall validation score (0-100) */ validationScore: number; /** Validation grade (A-F) */ validationGrade: 'A' | 'B' | 'C' | 'D' | 'F'; /** Overall priority based on issue severity */ priority: 'high' | 'medium' | 'low'; /** Estimated impact of applying fixes */ estimatedImpact: string; /** All knowledge matches from knowledge base */ knowledgeMatches: FixRecommendation[]; /** Confidence in the fix recommendations (0-1) */ confidence: number; /** Human-readable summary */ summary: string; } //# sourceMappingURL=schema.d.ts.map