@vfarcic/dot-ai
Version:
Universal Kubernetes application deployment agent with CLI and MCP interfaces
26 lines • 1.14 kB
TypeScript
/**
* Solution utilities for working with solution data structures
*/
/**
* Extract all user answers from a solution's questions
*/
export declare function extractUserAnswers(solution: any): Record<string, any>;
/**
* Sanitize intent string for use as Kubernetes label (63 char limit, alphanumeric + hyphens)
*/
export declare function sanitizeIntentForLabel(intent: string): string;
/**
* Sanitize string for use as Kubernetes resource name (RFC 1123 subdomain)
* Names must be lowercase alphanumeric characters, hyphens, or periods
* Must start and end with alphanumeric character, max 63 characters
*/
export declare function sanitizeKubernetesName(name: string): string;
/**
* Generate standard dot-ai labels for Kubernetes resources
*/
export declare function generateDotAiLabels(userAnswers: Record<string, any>, solution: any): Record<string, string>;
/**
* Add dot-ai labels to existing labels object
*/
export declare function addDotAiLabels(existingLabels: Record<string, string> | undefined, userAnswers: Record<string, any>, solution: any): Record<string, string>;
//# sourceMappingURL=solution-utils.d.ts.map