typekro 0.2.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/dist/.tsbuildinfo +1 -1
- package/dist/core/composition/imperative.d.ts.map +1 -1
- package/dist/core/composition/imperative.js +15 -2
- package/dist/core/composition/imperative.js.map +1 -1
- package/dist/core/composition/typekro-runtime/typekro-runtime.d.ts.map +1 -1
- package/dist/core/composition/typekro-runtime/typekro-runtime.js +24 -25
- package/dist/core/composition/typekro-runtime/typekro-runtime.js.map +1 -1
- package/dist/core/dependencies/type-guards.d.ts.map +1 -1
- package/dist/core/dependencies/type-guards.js +7 -2
- package/dist/core/dependencies/type-guards.js.map +1 -1
- package/dist/core/deployment/engine.d.ts +0 -1
- package/dist/core/deployment/engine.d.ts.map +1 -1
- package/dist/core/deployment/engine.js +0 -1
- package/dist/core/deployment/engine.js.map +1 -1
- package/dist/core/errors.d.ts +85 -0
- package/dist/core/errors.d.ts.map +1 -1
- package/dist/core/errors.js +135 -0
- package/dist/core/errors.js.map +1 -1
- package/dist/core/expressions/analyzer.d.ts +584 -0
- package/dist/core/expressions/analyzer.d.ts.map +1 -0
- package/dist/core/expressions/analyzer.js +2956 -0
- package/dist/core/expressions/analyzer.js.map +1 -0
- package/dist/core/expressions/cache.d.ts +136 -0
- package/dist/core/expressions/cache.d.ts.map +1 -0
- package/dist/core/expressions/cache.js +347 -0
- package/dist/core/expressions/cache.js.map +1 -0
- package/dist/core/expressions/cel-conversion-engine.d.ts +126 -0
- package/dist/core/expressions/cel-conversion-engine.d.ts.map +1 -0
- package/dist/core/expressions/cel-conversion-engine.js +293 -0
- package/dist/core/expressions/cel-conversion-engine.js.map +1 -0
- package/dist/core/expressions/compile-time-validation.d.ts +270 -0
- package/dist/core/expressions/compile-time-validation.d.ts.map +1 -0
- package/dist/core/expressions/compile-time-validation.js +506 -0
- package/dist/core/expressions/compile-time-validation.js.map +1 -0
- package/dist/core/expressions/composition-integration.d.ts +315 -0
- package/dist/core/expressions/composition-integration.d.ts.map +1 -0
- package/dist/core/expressions/composition-integration.js +936 -0
- package/dist/core/expressions/composition-integration.js.map +1 -0
- package/dist/core/expressions/conditional-expression-processor.d.ts +154 -0
- package/dist/core/expressions/conditional-expression-processor.d.ts.map +1 -0
- package/dist/core/expressions/conditional-expression-processor.js +479 -0
- package/dist/core/expressions/conditional-expression-processor.js.map +1 -0
- package/dist/core/expressions/conditional-integration.d.ts +133 -0
- package/dist/core/expressions/conditional-integration.d.ts.map +1 -0
- package/dist/core/expressions/conditional-integration.js +293 -0
- package/dist/core/expressions/conditional-integration.js.map +1 -0
- package/dist/core/expressions/conditional-validation.d.ts +181 -0
- package/dist/core/expressions/conditional-validation.d.ts.map +1 -0
- package/dist/core/expressions/conditional-validation.js +460 -0
- package/dist/core/expressions/conditional-validation.js.map +1 -0
- package/dist/core/expressions/context-aware-generator.d.ts +127 -0
- package/dist/core/expressions/context-aware-generator.d.ts.map +1 -0
- package/dist/core/expressions/context-aware-generator.js +500 -0
- package/dist/core/expressions/context-aware-generator.js.map +1 -0
- package/dist/core/expressions/context-detector.d.ts +148 -0
- package/dist/core/expressions/context-detector.d.ts.map +1 -0
- package/dist/core/expressions/context-detector.js +546 -0
- package/dist/core/expressions/context-detector.js.map +1 -0
- package/dist/core/expressions/context-switcher.d.ts +185 -0
- package/dist/core/expressions/context-switcher.d.ts.map +1 -0
- package/dist/core/expressions/context-switcher.js +515 -0
- package/dist/core/expressions/context-switcher.js.map +1 -0
- package/dist/core/expressions/context-validator.d.ts +176 -0
- package/dist/core/expressions/context-validator.d.ts.map +1 -0
- package/dist/core/expressions/context-validator.js +452 -0
- package/dist/core/expressions/context-validator.js.map +1 -0
- package/dist/core/expressions/custom-context-manager.d.ts +194 -0
- package/dist/core/expressions/custom-context-manager.d.ts.map +1 -0
- package/dist/core/expressions/custom-context-manager.js +390 -0
- package/dist/core/expressions/custom-context-manager.js.map +1 -0
- package/dist/core/expressions/expression-proxy.d.ts +80 -0
- package/dist/core/expressions/expression-proxy.d.ts.map +1 -0
- package/dist/core/expressions/expression-proxy.js +227 -0
- package/dist/core/expressions/expression-proxy.js.map +1 -0
- package/dist/core/expressions/factory-integration.d.ts +132 -0
- package/dist/core/expressions/factory-integration.d.ts.map +1 -0
- package/dist/core/expressions/factory-integration.js +327 -0
- package/dist/core/expressions/factory-integration.js.map +1 -0
- package/dist/core/expressions/factory-pattern-handler.d.ts +88 -0
- package/dist/core/expressions/factory-pattern-handler.d.ts.map +1 -0
- package/dist/core/expressions/factory-pattern-handler.js +336 -0
- package/dist/core/expressions/factory-pattern-handler.js.map +1 -0
- package/dist/core/expressions/field-hydration-processor.d.ts +188 -0
- package/dist/core/expressions/field-hydration-processor.d.ts.map +1 -0
- package/dist/core/expressions/field-hydration-processor.js +562 -0
- package/dist/core/expressions/field-hydration-processor.js.map +1 -0
- package/dist/core/expressions/imperative-analyzer.d.ts +21 -0
- package/dist/core/expressions/imperative-analyzer.d.ts.map +1 -0
- package/dist/core/expressions/imperative-analyzer.js +343 -0
- package/dist/core/expressions/imperative-analyzer.js.map +1 -0
- package/dist/core/expressions/index.d.ts +54 -0
- package/dist/core/expressions/index.d.ts.map +1 -0
- package/dist/core/expressions/index.js +50 -0
- package/dist/core/expressions/index.js.map +1 -0
- package/dist/core/expressions/lazy-analysis.d.ts +1128 -0
- package/dist/core/expressions/lazy-analysis.d.ts.map +1 -0
- package/dist/core/expressions/lazy-analysis.js +2443 -0
- package/dist/core/expressions/lazy-analysis.js.map +1 -0
- package/dist/core/expressions/magic-assignable-analyzer.d.ts +123 -0
- package/dist/core/expressions/magic-assignable-analyzer.d.ts.map +1 -0
- package/dist/core/expressions/magic-assignable-analyzer.js +352 -0
- package/dist/core/expressions/magic-assignable-analyzer.js.map +1 -0
- package/dist/core/expressions/magic-proxy-analyzer.d.ts +206 -0
- package/dist/core/expressions/magic-proxy-analyzer.d.ts.map +1 -0
- package/dist/core/expressions/magic-proxy-analyzer.js +639 -0
- package/dist/core/expressions/magic-proxy-analyzer.js.map +1 -0
- package/dist/core/expressions/magic-proxy-detector.d.ts +154 -0
- package/dist/core/expressions/magic-proxy-detector.d.ts.map +1 -0
- package/dist/core/expressions/magic-proxy-detector.js +242 -0
- package/dist/core/expressions/magic-proxy-detector.js.map +1 -0
- package/dist/core/expressions/migration-helpers.d.ts +133 -0
- package/dist/core/expressions/migration-helpers.d.ts.map +1 -0
- package/dist/core/expressions/migration-helpers.js +443 -0
- package/dist/core/expressions/migration-helpers.js.map +1 -0
- package/dist/core/expressions/optionality-handler.d.ts +503 -0
- package/dist/core/expressions/optionality-handler.d.ts.map +1 -0
- package/dist/core/expressions/optionality-handler.js +1306 -0
- package/dist/core/expressions/optionality-handler.js.map +1 -0
- package/dist/core/expressions/readiness-integration.d.ts +119 -0
- package/dist/core/expressions/readiness-integration.d.ts.map +1 -0
- package/dist/core/expressions/readiness-integration.js +386 -0
- package/dist/core/expressions/readiness-integration.js.map +1 -0
- package/dist/core/expressions/resource-analyzer.d.ts +486 -0
- package/dist/core/expressions/resource-analyzer.d.ts.map +1 -0
- package/dist/core/expressions/resource-analyzer.js +1086 -0
- package/dist/core/expressions/resource-analyzer.js.map +1 -0
- package/dist/core/expressions/resource-validation.d.ts +187 -0
- package/dist/core/expressions/resource-validation.d.ts.map +1 -0
- package/dist/core/expressions/resource-validation.js +552 -0
- package/dist/core/expressions/resource-validation.js.map +1 -0
- package/dist/core/expressions/runtime-error-mapper.d.ts +138 -0
- package/dist/core/expressions/runtime-error-mapper.d.ts.map +1 -0
- package/dist/core/expressions/runtime-error-mapper.js +412 -0
- package/dist/core/expressions/runtime-error-mapper.js.map +1 -0
- package/dist/core/expressions/source-map.d.ts +168 -0
- package/dist/core/expressions/source-map.d.ts.map +1 -0
- package/dist/core/expressions/source-map.js +350 -0
- package/dist/core/expressions/source-map.js.map +1 -0
- package/dist/core/expressions/status-builder-analyzer.d.ts +353 -0
- package/dist/core/expressions/status-builder-analyzer.d.ts.map +1 -0
- package/dist/core/expressions/status-builder-analyzer.js +1301 -0
- package/dist/core/expressions/status-builder-analyzer.js.map +1 -0
- package/dist/core/expressions/type-inference.d.ts +184 -0
- package/dist/core/expressions/type-inference.d.ts.map +1 -0
- package/dist/core/expressions/type-inference.js +838 -0
- package/dist/core/expressions/type-inference.js.map +1 -0
- package/dist/core/expressions/type-safety.d.ts +203 -0
- package/dist/core/expressions/type-safety.d.ts.map +1 -0
- package/dist/core/expressions/type-safety.js +442 -0
- package/dist/core/expressions/type-safety.js.map +1 -0
- package/dist/core/expressions/types.d.ts +282 -0
- package/dist/core/expressions/types.d.ts.map +1 -0
- package/dist/core/expressions/types.js +8 -0
- package/dist/core/expressions/types.js.map +1 -0
- package/dist/core/kubernetes/client-provider.js +2 -2
- package/dist/core/kubernetes/client-provider.js.map +1 -1
- package/dist/core/serialization/core.d.ts.map +1 -1
- package/dist/core/serialization/core.js +573 -9
- package/dist/core/serialization/core.js.map +1 -1
- package/dist/core/types/deployment.d.ts +4 -0
- package/dist/core/types/deployment.d.ts.map +1 -1
- package/dist/core/types/deployment.js.map +1 -1
- package/dist/core/types/index.d.ts +1 -0
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/core/types/index.js.map +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.d.ts.map +1 -1
- package/dist/core.js +1 -1
- package/dist/core.js.map +1 -1
- package/dist/factories/helm/helm-release.d.ts.map +1 -1
- package/dist/factories/helm/helm-release.js +0 -5
- package/dist/factories/helm/helm-release.js.map +1 -1
- package/dist/factories/helm/types.d.ts +1 -1
- package/dist/factories/helm/types.d.ts.map +1 -1
- package/dist/factories/shared.d.ts.map +1 -1
- package/dist/factories/shared.js +21 -1
- package/dist/factories/shared.js.map +1 -1
- package/dist/factories/simple/index.d.ts +2 -2
- package/dist/factories/simple/index.d.ts.map +1 -1
- package/dist/factories/simple/workloads/deployment.d.ts +3 -3
- package/dist/factories/simple/workloads/deployment.d.ts.map +1 -1
- package/dist/factories/simple/workloads/deployment.js +37 -11
- package/dist/factories/simple/workloads/deployment.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/type-guards.d.ts +6 -0
- package/dist/utils/type-guards.d.ts.map +1 -1
- package/dist/utils/type-guards.js +25 -2
- package/dist/utils/type-guards.js.map +1 -1
- package/package.json +6 -1
|
@@ -0,0 +1,506 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compile-Time Type Checking for Expression Compatibility
|
|
3
|
+
*
|
|
4
|
+
* This module provides compile-time type checking capabilities for JavaScript
|
|
5
|
+
* expressions that will be converted to CEL. It integrates with TypeScript's
|
|
6
|
+
* type system to validate expressions before runtime conversion.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Compile-time error
|
|
10
|
+
*/
|
|
11
|
+
export class CompileTimeError extends Error {
|
|
12
|
+
errorType;
|
|
13
|
+
expression;
|
|
14
|
+
location;
|
|
15
|
+
constructor(message, errorType, expression, location) {
|
|
16
|
+
super(message);
|
|
17
|
+
this.errorType = errorType;
|
|
18
|
+
this.expression = expression;
|
|
19
|
+
this.location = location;
|
|
20
|
+
this.name = 'CompileTimeError';
|
|
21
|
+
}
|
|
22
|
+
static forTypeIncompatibility(expression, expectedType, actualType, location) {
|
|
23
|
+
return new CompileTimeError(`Type '${actualType}' is not assignable to type '${expectedType}'`, 'TYPE_INCOMPATIBILITY', expression, location);
|
|
24
|
+
}
|
|
25
|
+
static forUnsupportedSyntax(expression, syntaxFeature, location) {
|
|
26
|
+
return new CompileTimeError(`Unsupported syntax feature: ${syntaxFeature}`, 'UNSUPPORTED_SYNTAX', expression, location);
|
|
27
|
+
}
|
|
28
|
+
static forGenericConstraintViolation(expression, constraint, actualType, location) {
|
|
29
|
+
return new CompileTimeError(`Type '${actualType}' does not satisfy constraint '${constraint}'`, 'GENERIC_CONSTRAINT_VIOLATION', expression, location);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Compile-time warning
|
|
34
|
+
*/
|
|
35
|
+
export class CompileTimeWarning {
|
|
36
|
+
message;
|
|
37
|
+
warningType;
|
|
38
|
+
expression;
|
|
39
|
+
location;
|
|
40
|
+
constructor(message, warningType, expression, location) {
|
|
41
|
+
this.message = message;
|
|
42
|
+
this.warningType = warningType;
|
|
43
|
+
this.expression = expression;
|
|
44
|
+
this.location = location;
|
|
45
|
+
}
|
|
46
|
+
static forPotentialRuntimeError(expression, reason, location) {
|
|
47
|
+
return new CompileTimeWarning(`Potential runtime error: ${reason}`, 'POTENTIAL_RUNTIME_ERROR', expression, location);
|
|
48
|
+
}
|
|
49
|
+
static forPerformanceImpact(expression, impact, location) {
|
|
50
|
+
return new CompileTimeWarning(`Performance impact: ${impact}`, 'PERFORMANCE_IMPACT', expression, location);
|
|
51
|
+
}
|
|
52
|
+
static forDeprecatedFeature(expression, feature, replacement, location) {
|
|
53
|
+
const message = replacement
|
|
54
|
+
? `Deprecated feature '${feature}', use '${replacement}' instead`
|
|
55
|
+
: `Deprecated feature '${feature}'`;
|
|
56
|
+
return new CompileTimeWarning(message, 'DEPRECATED_FEATURE', expression, location);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Compile-time type checker
|
|
61
|
+
*/
|
|
62
|
+
export class CompileTimeTypeChecker {
|
|
63
|
+
typeCache = new Map();
|
|
64
|
+
validationCache = new Map();
|
|
65
|
+
/**
|
|
66
|
+
* Validate expression compatibility at compile time
|
|
67
|
+
*/
|
|
68
|
+
validateExpressionCompatibility(expression, context) {
|
|
69
|
+
const startTime = Date.now();
|
|
70
|
+
// Check cache first
|
|
71
|
+
const cacheKey = this.createCacheKey(expression, context);
|
|
72
|
+
const cached = this.validationCache.get(cacheKey);
|
|
73
|
+
if (cached && !context.skipCache) {
|
|
74
|
+
return cached;
|
|
75
|
+
}
|
|
76
|
+
const errors = [];
|
|
77
|
+
const warnings = [];
|
|
78
|
+
const compatibilityIssues = [];
|
|
79
|
+
const suggestions = [];
|
|
80
|
+
try {
|
|
81
|
+
// Extract compile-time type information
|
|
82
|
+
const compileTimeType = this.extractCompileTimeType(expression, context);
|
|
83
|
+
// Infer runtime type
|
|
84
|
+
const runtimeType = this.inferRuntimeType(expression, context);
|
|
85
|
+
// Check compatibility between compile-time and runtime types
|
|
86
|
+
const compatibility = this.checkTypeCompatibility(compileTimeType, runtimeType, context);
|
|
87
|
+
compatibilityIssues.push(...compatibility.issues);
|
|
88
|
+
// Validate against expected type if provided
|
|
89
|
+
if (context.expectedType) {
|
|
90
|
+
const expectedCompatibility = this.validateAgainstExpectedType(compileTimeType, context.expectedType, context);
|
|
91
|
+
compatibilityIssues.push(...expectedCompatibility.issues);
|
|
92
|
+
errors.push(...expectedCompatibility.errors);
|
|
93
|
+
warnings.push(...expectedCompatibility.warnings);
|
|
94
|
+
}
|
|
95
|
+
// Check for unsupported syntax
|
|
96
|
+
const syntaxValidation = this.validateSyntaxSupport(expression, context);
|
|
97
|
+
errors.push(...syntaxValidation.errors);
|
|
98
|
+
warnings.push(...syntaxValidation.warnings);
|
|
99
|
+
// Check for potential runtime issues
|
|
100
|
+
const runtimeValidation = this.validateRuntimeSafety(expression, compileTimeType, context);
|
|
101
|
+
warnings.push(...runtimeValidation.warnings);
|
|
102
|
+
suggestions.push(...runtimeValidation.suggestions);
|
|
103
|
+
// Generate suggestions for issues
|
|
104
|
+
suggestions.push(...this.generateSuggestions(compatibilityIssues, errors, warnings));
|
|
105
|
+
const validationTime = Date.now() - startTime;
|
|
106
|
+
const result = {
|
|
107
|
+
valid: errors.length === 0 && compatibilityIssues.filter(i => i.severity === 'error').length === 0,
|
|
108
|
+
compileTimeType,
|
|
109
|
+
runtimeType,
|
|
110
|
+
compatibilityIssues,
|
|
111
|
+
errors,
|
|
112
|
+
warnings,
|
|
113
|
+
suggestions,
|
|
114
|
+
metadata: {
|
|
115
|
+
strictMode: context.strictMode || false,
|
|
116
|
+
strictNullChecks: context.strictNullChecks || false,
|
|
117
|
+
validationTime,
|
|
118
|
+
typeChecksPerformed: 1,
|
|
119
|
+
complexityScore: this.calculateComplexityScore(expression)
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
// Cache the result
|
|
123
|
+
this.validationCache.set(cacheKey, result);
|
|
124
|
+
return result;
|
|
125
|
+
}
|
|
126
|
+
catch (_error) {
|
|
127
|
+
const validationError = CompileTimeError.forTypeIncompatibility(expression, 'unknown', 'unknown');
|
|
128
|
+
const result = {
|
|
129
|
+
valid: false,
|
|
130
|
+
compatibilityIssues,
|
|
131
|
+
errors: [validationError],
|
|
132
|
+
warnings,
|
|
133
|
+
suggestions,
|
|
134
|
+
metadata: {
|
|
135
|
+
strictMode: context.strictMode || false,
|
|
136
|
+
strictNullChecks: context.strictNullChecks || false,
|
|
137
|
+
validationTime: Date.now() - startTime,
|
|
138
|
+
typeChecksPerformed: 0,
|
|
139
|
+
complexityScore: 0
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
this.validationCache.set(cacheKey, result);
|
|
143
|
+
return result;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Validate multiple expressions for compatibility
|
|
148
|
+
*/
|
|
149
|
+
validateExpressionsCompatibility(expressions, context) {
|
|
150
|
+
return expressions.map(expr => this.validateExpressionCompatibility(expr, context));
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Validate that a KubernetesRef type is compatible with its usage
|
|
154
|
+
*/
|
|
155
|
+
validateKubernetesRefCompatibility(ref, usageContext, validationContext) {
|
|
156
|
+
const _expression = `${ref.resourceId}.${ref.fieldPath}`;
|
|
157
|
+
// Extract the compile-time type of the KubernetesRef
|
|
158
|
+
const compileTimeType = this.extractKubernetesRefType(ref, usageContext);
|
|
159
|
+
// Check if the usage is compatible with the type
|
|
160
|
+
const compatibility = this.validateKubernetesRefUsage(ref, usageContext, validationContext);
|
|
161
|
+
return {
|
|
162
|
+
valid: compatibility.valid,
|
|
163
|
+
compileTimeType,
|
|
164
|
+
...(compatibility.runtimeType && { runtimeType: compatibility.runtimeType }),
|
|
165
|
+
compatibilityIssues: compatibility.issues,
|
|
166
|
+
errors: compatibility.errors,
|
|
167
|
+
warnings: compatibility.warnings,
|
|
168
|
+
suggestions: compatibility.suggestions,
|
|
169
|
+
metadata: {
|
|
170
|
+
strictMode: validationContext.strictMode || false,
|
|
171
|
+
strictNullChecks: validationContext.strictNullChecks || false,
|
|
172
|
+
validationTime: 0,
|
|
173
|
+
typeChecksPerformed: 1,
|
|
174
|
+
complexityScore: 1
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Extract compile-time type information from expression
|
|
180
|
+
*/
|
|
181
|
+
extractCompileTimeType(expression, _context) {
|
|
182
|
+
// This would integrate with TypeScript compiler API
|
|
183
|
+
// For now, provide a basic implementation
|
|
184
|
+
// Check for literal types
|
|
185
|
+
if (expression.match(/^["'].*["']$/)) {
|
|
186
|
+
return {
|
|
187
|
+
typeName: 'string',
|
|
188
|
+
isUnion: false,
|
|
189
|
+
isGeneric: false,
|
|
190
|
+
optional: false,
|
|
191
|
+
nullable: false,
|
|
192
|
+
undefinable: false
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
if (expression.match(/^\d+(\.\d+)?$/)) {
|
|
196
|
+
return {
|
|
197
|
+
typeName: 'number',
|
|
198
|
+
isUnion: false,
|
|
199
|
+
isGeneric: false,
|
|
200
|
+
optional: false,
|
|
201
|
+
nullable: false,
|
|
202
|
+
undefinable: false
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
if (expression === 'true' || expression === 'false') {
|
|
206
|
+
return {
|
|
207
|
+
typeName: 'boolean',
|
|
208
|
+
isUnion: false,
|
|
209
|
+
isGeneric: false,
|
|
210
|
+
optional: false,
|
|
211
|
+
nullable: false,
|
|
212
|
+
undefinable: false
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
// Check for boolean expressions
|
|
216
|
+
if (this.isBooleanExpression(expression)) {
|
|
217
|
+
return {
|
|
218
|
+
typeName: 'boolean',
|
|
219
|
+
isUnion: false,
|
|
220
|
+
isGeneric: false,
|
|
221
|
+
optional: false,
|
|
222
|
+
nullable: false,
|
|
223
|
+
undefinable: false
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
// Check for numeric expressions
|
|
227
|
+
if (this.isNumericExpression(expression)) {
|
|
228
|
+
return {
|
|
229
|
+
typeName: 'number',
|
|
230
|
+
isUnion: false,
|
|
231
|
+
isGeneric: false,
|
|
232
|
+
optional: false,
|
|
233
|
+
nullable: false,
|
|
234
|
+
undefinable: false
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
// Check for resource references
|
|
238
|
+
if (expression.includes('resources.') || expression.includes('schema.')) {
|
|
239
|
+
return {
|
|
240
|
+
typeName: 'KubernetesRef<unknown>',
|
|
241
|
+
isUnion: false,
|
|
242
|
+
isGeneric: true,
|
|
243
|
+
genericParams: ['unknown'],
|
|
244
|
+
optional: false,
|
|
245
|
+
nullable: false,
|
|
246
|
+
undefinable: false
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
// Default to unknown
|
|
250
|
+
return {
|
|
251
|
+
typeName: 'unknown',
|
|
252
|
+
isUnion: false,
|
|
253
|
+
isGeneric: false,
|
|
254
|
+
optional: false,
|
|
255
|
+
nullable: false,
|
|
256
|
+
undefinable: false
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Infer runtime type from compile-time information
|
|
261
|
+
*/
|
|
262
|
+
inferRuntimeType(expression, context) {
|
|
263
|
+
// Convert compile-time type to runtime type
|
|
264
|
+
const compileTimeType = this.extractCompileTimeType(expression, context);
|
|
265
|
+
return {
|
|
266
|
+
typeName: compileTimeType.typeName,
|
|
267
|
+
optional: compileTimeType.optional,
|
|
268
|
+
nullable: compileTimeType.nullable
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Check compatibility between compile-time and runtime types
|
|
273
|
+
*/
|
|
274
|
+
checkTypeCompatibility(compileTimeType, runtimeType, _context) {
|
|
275
|
+
const issues = [];
|
|
276
|
+
// Check basic type compatibility
|
|
277
|
+
if (compileTimeType.typeName !== runtimeType.typeName &&
|
|
278
|
+
!this.areTypesCompatible(compileTimeType.typeName, runtimeType.typeName)) {
|
|
279
|
+
issues.push({
|
|
280
|
+
type: 'TYPE_MISMATCH',
|
|
281
|
+
description: `Compile-time type '${compileTimeType.typeName}' does not match runtime type '${runtimeType.typeName}'`,
|
|
282
|
+
expectedType: compileTimeType,
|
|
283
|
+
actualType: this.convertRuntimeToCompileTime(runtimeType),
|
|
284
|
+
severity: 'error'
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
// Check nullability compatibility
|
|
288
|
+
if (compileTimeType.nullable !== runtimeType.nullable) {
|
|
289
|
+
issues.push({
|
|
290
|
+
type: 'NULLABILITY_MISMATCH',
|
|
291
|
+
description: `Nullability mismatch between compile-time and runtime types`,
|
|
292
|
+
expectedType: compileTimeType,
|
|
293
|
+
actualType: this.convertRuntimeToCompileTime(runtimeType),
|
|
294
|
+
severity: 'warning'
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
// Check optionality compatibility
|
|
298
|
+
if (compileTimeType.optional !== runtimeType.optional) {
|
|
299
|
+
issues.push({
|
|
300
|
+
type: 'OPTIONALITY_MISMATCH',
|
|
301
|
+
description: `Optionality mismatch between compile-time and runtime types`,
|
|
302
|
+
expectedType: compileTimeType,
|
|
303
|
+
actualType: this.convertRuntimeToCompileTime(runtimeType),
|
|
304
|
+
severity: 'warning'
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
return { issues };
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Validate against expected type
|
|
311
|
+
*/
|
|
312
|
+
validateAgainstExpectedType(actualType, expectedType, _context) {
|
|
313
|
+
const issues = [];
|
|
314
|
+
const errors = [];
|
|
315
|
+
const warnings = [];
|
|
316
|
+
if (!this.areTypesCompatible(actualType.typeName, expectedType.typeName)) {
|
|
317
|
+
issues.push({
|
|
318
|
+
type: 'TYPE_MISMATCH',
|
|
319
|
+
description: `Type '${actualType.typeName}' is not assignable to type '${expectedType.typeName}'`,
|
|
320
|
+
expectedType,
|
|
321
|
+
actualType,
|
|
322
|
+
severity: 'error',
|
|
323
|
+
suggestedFix: `Convert to ${expectedType.typeName} or adjust the expected type`
|
|
324
|
+
});
|
|
325
|
+
errors.push(CompileTimeError.forTypeIncompatibility('', expectedType.typeName, actualType.typeName));
|
|
326
|
+
}
|
|
327
|
+
return { issues, errors, warnings };
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Validate syntax support
|
|
331
|
+
*/
|
|
332
|
+
validateSyntaxSupport(expression, _context) {
|
|
333
|
+
const errors = [];
|
|
334
|
+
const warnings = [];
|
|
335
|
+
// Check for unsupported syntax features
|
|
336
|
+
const unsupportedFeatures = [
|
|
337
|
+
{ pattern: /async\s+/, feature: 'async/await' },
|
|
338
|
+
{ pattern: /yield\s+/, feature: 'generators' },
|
|
339
|
+
{ pattern: /class\s+/, feature: 'class declarations' },
|
|
340
|
+
{ pattern: /function\*/, feature: 'generator functions' }
|
|
341
|
+
];
|
|
342
|
+
for (const { pattern, feature } of unsupportedFeatures) {
|
|
343
|
+
if (pattern.test(expression)) {
|
|
344
|
+
errors.push(CompileTimeError.forUnsupportedSyntax(expression, feature));
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
// Check for potentially problematic features
|
|
348
|
+
const problematicFeatures = [
|
|
349
|
+
{ pattern: /eval\(/, feature: 'eval() usage' },
|
|
350
|
+
{ pattern: /new Function/, feature: 'Function constructor' },
|
|
351
|
+
{ pattern: /with\s*\(/, feature: 'with statements' }
|
|
352
|
+
];
|
|
353
|
+
for (const { pattern, feature } of problematicFeatures) {
|
|
354
|
+
if (pattern.test(expression)) {
|
|
355
|
+
warnings.push(CompileTimeWarning.forPotentialRuntimeError(expression, `${feature} may cause runtime issues`));
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
return { errors, warnings };
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* Validate runtime safety
|
|
362
|
+
*/
|
|
363
|
+
validateRuntimeSafety(expression, compileTimeType, _context) {
|
|
364
|
+
const warnings = [];
|
|
365
|
+
const suggestions = [];
|
|
366
|
+
// Check for potential null/undefined access
|
|
367
|
+
if (expression.includes('.') && !expression.includes('?.')) {
|
|
368
|
+
// For expressions like "obj.prop.nested", assume the intermediate objects could be null
|
|
369
|
+
const propertyAccesses = expression.split('.').length - 1;
|
|
370
|
+
if (propertyAccesses > 1) {
|
|
371
|
+
warnings.push(CompileTimeWarning.forPotentialRuntimeError(expression, 'Property access on potentially null/undefined value'));
|
|
372
|
+
suggestions.push('Consider using optional chaining (?.) for safer property access');
|
|
373
|
+
}
|
|
374
|
+
if (compileTimeType.nullable || compileTimeType.undefinable) {
|
|
375
|
+
warnings.push(CompileTimeWarning.forPotentialRuntimeError(expression, 'Property access on potentially null/undefined value'));
|
|
376
|
+
suggestions.push('Consider using optional chaining (?.) for safer property access');
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
// Check for performance implications
|
|
380
|
+
if (expression.includes('find(') || expression.includes('filter(')) {
|
|
381
|
+
warnings.push(CompileTimeWarning.forPerformanceImpact(expression, 'Array methods may have performance implications in CEL'));
|
|
382
|
+
suggestions.push('Consider using simpler expressions when possible');
|
|
383
|
+
}
|
|
384
|
+
return { warnings, suggestions };
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Extract KubernetesRef type information
|
|
388
|
+
*/
|
|
389
|
+
extractKubernetesRefType(ref, _usageContext) {
|
|
390
|
+
return {
|
|
391
|
+
typeName: `KubernetesRef<${ref._type || 'unknown'}>`,
|
|
392
|
+
isUnion: false,
|
|
393
|
+
isGeneric: true,
|
|
394
|
+
genericParams: [String(ref._type || 'unknown')],
|
|
395
|
+
optional: false,
|
|
396
|
+
nullable: false,
|
|
397
|
+
undefinable: false
|
|
398
|
+
};
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* Validate KubernetesRef usage
|
|
402
|
+
*/
|
|
403
|
+
validateKubernetesRefUsage(ref, usageContext, _validationContext) {
|
|
404
|
+
const issues = [];
|
|
405
|
+
const errors = [];
|
|
406
|
+
const warnings = [];
|
|
407
|
+
const suggestions = [];
|
|
408
|
+
// Validate that the resource exists
|
|
409
|
+
if (!usageContext.availableResources[ref.resourceId] && ref.resourceId !== '__schema__') {
|
|
410
|
+
errors.push(CompileTimeError.forTypeIncompatibility(`${ref.resourceId}.${ref.fieldPath}`, 'Enhanced<any, any>', 'undefined'));
|
|
411
|
+
}
|
|
412
|
+
// Validate field path
|
|
413
|
+
if (ref.fieldPath.includes('..') || ref.fieldPath.startsWith('.') || ref.fieldPath.endsWith('.')) {
|
|
414
|
+
errors.push(CompileTimeError.forUnsupportedSyntax(`${ref.resourceId}.${ref.fieldPath}`, 'invalid field path syntax'));
|
|
415
|
+
}
|
|
416
|
+
return {
|
|
417
|
+
valid: errors.length === 0,
|
|
418
|
+
runtimeType: { typeName: String(ref._type || 'unknown'), optional: false, nullable: false },
|
|
419
|
+
issues,
|
|
420
|
+
errors,
|
|
421
|
+
warnings,
|
|
422
|
+
suggestions
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Utility methods
|
|
427
|
+
*/
|
|
428
|
+
areTypesCompatible(type1, type2) {
|
|
429
|
+
if (type1 === type2)
|
|
430
|
+
return true;
|
|
431
|
+
if (type1 === 'any' || type2 === 'any')
|
|
432
|
+
return true;
|
|
433
|
+
if (type1 === 'unknown' || type2 === 'unknown')
|
|
434
|
+
return true;
|
|
435
|
+
// Handle basic type compatibility
|
|
436
|
+
const compatibilityMap = {
|
|
437
|
+
'string': ['string', 'String'],
|
|
438
|
+
'number': ['number', 'Number'],
|
|
439
|
+
'boolean': ['boolean', 'Boolean'],
|
|
440
|
+
'null': ['null', 'undefined'],
|
|
441
|
+
'undefined': ['undefined', 'null']
|
|
442
|
+
};
|
|
443
|
+
return compatibilityMap[type1]?.includes(type2) || false;
|
|
444
|
+
}
|
|
445
|
+
convertRuntimeToCompileTime(runtimeType) {
|
|
446
|
+
return {
|
|
447
|
+
typeName: runtimeType.typeName,
|
|
448
|
+
isUnion: false,
|
|
449
|
+
isGeneric: false,
|
|
450
|
+
optional: runtimeType.optional,
|
|
451
|
+
nullable: runtimeType.nullable,
|
|
452
|
+
undefinable: runtimeType.optional
|
|
453
|
+
};
|
|
454
|
+
}
|
|
455
|
+
generateSuggestions(issues, errors, _warnings) {
|
|
456
|
+
const suggestions = [];
|
|
457
|
+
// Generate suggestions based on issues
|
|
458
|
+
for (const issue of issues) {
|
|
459
|
+
if (issue.suggestedFix) {
|
|
460
|
+
suggestions.push(issue.suggestedFix);
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
// Generate suggestions based on errors
|
|
464
|
+
for (const error of errors) {
|
|
465
|
+
if (error.errorType === 'TYPE_INCOMPATIBILITY') {
|
|
466
|
+
suggestions.push('Consider adding type assertions or converting the value to the expected type');
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
return [...new Set(suggestions)]; // Remove duplicates
|
|
470
|
+
}
|
|
471
|
+
calculateComplexityScore(expression) {
|
|
472
|
+
let score = 0;
|
|
473
|
+
// Basic complexity factors
|
|
474
|
+
score += (expression.match(/\./g) || []).length; // Property access
|
|
475
|
+
score += (expression.match(/\(/g) || []).length; // Function calls
|
|
476
|
+
score += (expression.match(/\?/g) || []).length; // Conditional operators
|
|
477
|
+
score += (expression.match(/&&|\|\|/g) || []).length; // Logical operators
|
|
478
|
+
return Math.min(10, score);
|
|
479
|
+
}
|
|
480
|
+
createCacheKey(expression, context) {
|
|
481
|
+
return `${expression}:${JSON.stringify({
|
|
482
|
+
strictMode: context.strictMode,
|
|
483
|
+
strictNullChecks: context.strictNullChecks,
|
|
484
|
+
expectedType: context.expectedType?.typeName
|
|
485
|
+
})}`;
|
|
486
|
+
}
|
|
487
|
+
isBooleanExpression(expression) {
|
|
488
|
+
// Boolean operators
|
|
489
|
+
const booleanOperators = ['&&', '||', '!', '==', '!=', '===', '!==', '>', '<', '>=', '<='];
|
|
490
|
+
return booleanOperators.some(op => expression.includes(op));
|
|
491
|
+
}
|
|
492
|
+
isNumericExpression(expression) {
|
|
493
|
+
// Numeric operators
|
|
494
|
+
const numericOperators = ['+', '-', '*', '/', '%'];
|
|
495
|
+
return numericOperators.some(op => expression.includes(op)) &&
|
|
496
|
+
!expression.includes('"') && !expression.includes("'");
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* Clear validation cache
|
|
500
|
+
*/
|
|
501
|
+
clearCache() {
|
|
502
|
+
this.typeCache.clear();
|
|
503
|
+
this.validationCache.clear();
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
//# sourceMappingURL=compile-time-validation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compile-time-validation.js","sourceRoot":"","sources":["../../../src/core/expressions/compile-time-validation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAiGH;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IAGvB;IACA;IACA;IAJlB,YACE,OAAe,EACC,SAA+B,EAC/B,UAAkB,EAClB,QAA2C;QAE3D,KAAK,CAAC,OAAO,CAAC,CAAC;QAJC,cAAS,GAAT,SAAS,CAAsB;QAC/B,eAAU,GAAV,UAAU,CAAQ;QAClB,aAAQ,GAAR,QAAQ,CAAmC;QAG3D,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;IACjC,CAAC;IAED,MAAM,CAAC,sBAAsB,CAC3B,U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