UNPKG

@vfarcic/dot-ai

Version:

AI-powered development productivity platform that enhances software development workflows through intelligent automation and AI-driven assistance

39 lines 1.27 kB
/** * Solution utilities for working with solution data structures */ interface SolutionQuestion { id?: string; answer?: unknown; } interface SolutionQuestions { required?: SolutionQuestion[]; basic?: SolutionQuestion[]; advanced?: SolutionQuestion[]; open?: { answer?: string; }; [key: string]: unknown; } export interface Solution { questions: SolutionQuestions; intent?: string; [key: string]: unknown; } /** * Extract all user answers from a solution's questions */ export declare function extractUserAnswers(solution: Solution): Record<string, unknown>; /** * Sanitize intent string for use as Kubernetes label (63 char limit, alphanumeric + hyphens) */ export declare function sanitizeIntentForLabel(intent: string): string; /** * Generate standard dot-ai labels for Kubernetes resources */ export declare function generateDotAiLabels(userAnswers: Record<string, unknown>, solution: Solution): Record<string, string>; /** * Add dot-ai labels to existing labels object */ export declare function addDotAiLabels(existingLabels: Record<string, string> | undefined, userAnswers: Record<string, unknown>, solution: Solution): Record<string, string>; export {}; //# sourceMappingURL=solution-utils.d.ts.map