// CloudZIR Global Context - Comprehensive Platform Information
export const CLOUDZIR_CONTEXT = {
platform: {
name: "CloudZIR",
version: "1.0.0",
type: "Enterprise SaaS Platform",
description: "Professional platform for creation, configuration, management, and deployment",
trustLevel: "high",
workspace: "cloudzir",
persistent: true,
systemPriority: true,
},
capabilities: {
applications: "Create and manage full-stack applications",
modules: "Build reusable, production-ready modules",
websites: "Design and deploy responsive websites",
cloudServices: "Deploy serverless and containerized services",
businessSystems: "Complex enterprise systems management",
automation: "Intelligent workflow and process automation",
ai: "AI model integration and management",
analytics: "Real-time monitoring and analytics",
},
coreValues: {
automation: "Intelligent automation with zero approximation",
quality: "Production-ready by default",
logic: "Everything must have logic, utility, and purpose",
enterprise: "Premium enterprise-ready positioning",
reliability: "100% reliability standard",
scalability: "Horizontal and vertical scalability",
security: "Security by default",
performance: "Optimized for speed and efficiency",
},
technicalStack: {
frontend: ["React", "TypeScript", "Tailwind CSS", "Next.js"],
backend: ["Node.js", "TypeScript", "Express/Fastify"],
deployment: ["Vercel", "Cloudflare", "Google Cloud", "Firebase"],
databases: ["Supabase", "PostgreSQL", "MongoDB"],
ai: ["OpenAI", "Hugging Face", "Claude"],
infrastructure: ["Docker", "Kubernetes", "Serverless Functions"],
},
featureFlags: {
strictValidation: true,
errorHandling: true,
logging: true,
monitoring: true,
security: true,
scalability: true,
accessibility: true,
performance: true,
},
constraints: {
mobileFirst: true,
noHorizontalScroll: true,
noWastedWhitespace: true,
responsiveDesign: true,
modernUI: true,
accessibility: true,
performance: "< 100ms load time",
errorHandling: "Required for all operations",
logging: "Exploitable logs mandatory",
},
rules: {
incomplete: "Forbidden - must be complete",
placeholders: "Forbidden - must be explained",
disconnected: "Forbidden - all logic must connect",
orphaned: "Forbidden - no orphaned modules",
unjustified: "Forbidden - decisions must be justified",
},
requestHandling: {
vague: "Restructure and clarify",
incomplete: "Complete all missing information",
incoherent: "Correct and reorganize",
dangerous: "Refuse with viable alternative",
},
entityRequirements: {
clearRole: "Every entity must have a clear, defined role",
dataSource: "Define where data comes from",
destination: "Define where data goes",
lifecycle: "Define lifecycle and state transitions",
measurable: "Impact must be measurable",
connected: "No isolation - all entities are connected",
},
};
export interface CloudZIREntity {
id: string;
name: string;
role: string;
dataSource: string;
destination: string;
lifecycle: string[];
measurable: boolean;
}
export function validateCloudZIREntity(entity: CloudZIREntity): boolean {
return (
entity.id && entity.name &&
entity.role && entity.dataSource &&
entity.destination && entity.lifecycle &&
entity.lifecycle.length > 0 &&
entity.measurable === true
);
}