@vfarcic/dot-ai
Version:
AI-powered development productivity platform that enhances software development workflows through intelligent automation and AI-driven assistance
88 lines • 2.82 kB
TypeScript
/**
* Unified Creation Session Manager
*
* Handles step-by-step creation workflow for both patterns and policies
* with context-aware questions and AI-powered trigger expansion.
* Loads prompts from markdown files following CLAUDE.md guidelines.
*/
import { KubernetesDiscovery } from './discovery';
import { UnifiedCreationSession, UnifiedWorkflowStepResponse, UnifiedWorkflowCompletionResponse, EntityType } from './unified-creation-types';
/**
* Session creation/operation arguments
*/
interface SessionArgs {
collection?: string;
interaction_id?: string;
[key: string]: unknown;
}
export declare class UnifiedCreationSessionManager {
private config;
private discovery;
private sessionManager;
/**
* PRD #359: Uses unified plugin registry for kubectl operations
*/
constructor(entityType: EntityType, discovery?: KubernetesDiscovery);
/**
* Create a new creation session
*/
createSession(args: SessionArgs): UnifiedCreationSession;
/**
* Load existing session
*/
loadSession(sessionId: string): UnifiedCreationSession | null;
/**
* Process user response and advance session
*/
processResponse(sessionId: string, response: string): UnifiedCreationSession;
/**
* Generate next workflow step
*/
getNextWorkflowStep(session: UnifiedCreationSession, args?: SessionArgs): Promise<UnifiedWorkflowStepResponse | UnifiedWorkflowCompletionResponse>;
/**
* Generate trigger expansion step with AI suggestions
*/
private generateTriggerExpansionStep;
/**
* Generate trigger expansion using internal AI
*/
private generateInternalTriggerExpansion;
/**
* Generate review step showing all collected data
*/
private generateReviewStep;
/**
* Complete the workflow and create the entity
*/
private completeWorkflow;
/**
* Handle policy deployment choice (apply to cluster or store intent only)
*/
private handlePolicyDeploymentChoice;
/**
* Validate YAML syntax
*/
private validateYamlSyntax;
/**
* Validate Kyverno policy using multi-layer approach
*/
private validateKyvernoPolicy;
/**
* Generate Kyverno policy step - automatically generates policy from intent data with validation loop
*/
private generateKyvernoStep;
/**
* Retrieve relevant schemas for Kyverno generation using semantic search
*/
private retrieveRelevantSchemas;
/**
* Format namespace scope for inclusion in the Kyverno generation prompt
*/
private formatNamespaceScope;
/**
* Format schemas for inclusion in the Kyverno generation prompt
*/
private formatSchemasForPrompt;
}
export {};
//# sourceMappingURL=unified-creation-session.d.ts.map