@tachui/devtools 0.8.0-alpha
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/LICENSE +363 -0
- package/README.md +189 -0
- package/dist/build-time/detection.d.ts +32 -0
- package/dist/build-time/detection.d.ts.map +1 -0
- package/dist/build-time/index.d.ts +84 -0
- package/dist/build-time/index.d.ts.map +1 -0
- package/dist/build-time/plugins.d.ts +75 -0
- package/dist/build-time/plugins.d.ts.map +1 -0
- package/dist/build-time/rules.d.ts +73 -0
- package/dist/build-time/rules.d.ts.map +1 -0
- package/dist/build-time/transformer.d.ts +23 -0
- package/dist/build-time/transformer.d.ts.map +1 -0
- package/dist/build-time/types.d.ts +212 -0
- package/dist/build-time/types.d.ts.map +1 -0
- package/dist/debug/advanced-debugging.d.ts +327 -0
- package/dist/debug/advanced-debugging.d.ts.map +1 -0
- package/dist/debug/debug.d.ts +61 -0
- package/dist/debug/debug.d.ts.map +1 -0
- package/dist/debug/developer-experience.d.ts +261 -0
- package/dist/debug/developer-experience.d.ts.map +1 -0
- package/dist/debug/development-warnings.d.ts +42 -0
- package/dist/debug/development-warnings.d.ts.map +1 -0
- package/dist/debug/documentation-integration.d.ts +269 -0
- package/dist/debug/documentation-integration.d.ts.map +1 -0
- package/dist/debug/enhanced-errors.d.ts +176 -0
- package/dist/debug/enhanced-errors.d.ts.map +1 -0
- package/dist/debug/enhanced-types.d.ts +284 -0
- package/dist/debug/enhanced-types.d.ts.map +1 -0
- package/dist/debug/ide-integration.d.ts +328 -0
- package/dist/debug/ide-integration.d.ts.map +1 -0
- package/dist/debug/index.d.ts +12 -0
- package/dist/debug/index.d.ts.map +1 -0
- package/dist/debug/index.js +1251 -0
- package/dist/debug/index.js.map +1 -0
- package/dist/debug/validation-debug-tools.d.ts +228 -0
- package/dist/debug/validation-debug-tools.d.ts.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +216229 -0
- package/dist/index.js.map +1 -0
- package/dist/inspector/index.d.ts +232 -0
- package/dist/inspector/index.d.ts.map +1 -0
- package/dist/inspector/index.js +525 -0
- package/dist/inspector/index.js.map +1 -0
- package/dist/plugins/simplified-error-handler.d.ts +83 -0
- package/dist/plugins/simplified-error-handler.d.ts.map +1 -0
- package/dist/profiler/index.d.ts +21 -0
- package/dist/profiler/index.d.ts.map +1 -0
- package/dist/profiler/index.js +519 -0
- package/dist/profiler/index.js.map +1 -0
- package/dist/profiler/performance-optimizer.d.ts +115 -0
- package/dist/profiler/performance-optimizer.d.ts.map +1 -0
- package/dist/profiler/production-monitoring.d.ts +150 -0
- package/dist/profiler/production-monitoring.d.ts.map +1 -0
- package/dist/runtime/error-boundary.d.ts +302 -0
- package/dist/runtime/error-boundary.d.ts.map +1 -0
- package/dist/runtime/error-recovery.d.ts +267 -0
- package/dist/runtime/error-recovery.d.ts.map +1 -0
- package/dist/runtime/error-reporting.d.ts +287 -0
- package/dist/runtime/error-reporting.d.ts.map +1 -0
- package/dist/runtime/error-utils.d.ts +204 -0
- package/dist/runtime/error-utils.d.ts.map +1 -0
- package/dist/runtime/performance.d.ts +217 -0
- package/dist/runtime/performance.d.ts.map +1 -0
- package/dist/testing/index.d.ts +29 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +47 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/validation/debug-tools-stub.d.ts +67 -0
- package/dist/validation/debug-tools-stub.d.ts.map +1 -0
- package/dist/validation/enhanced-runtime.d.ts +310 -0
- package/dist/validation/enhanced-runtime.d.ts.map +1 -0
- package/dist/validation/error-reporting.d.ts +186 -0
- package/dist/validation/error-reporting.d.ts.map +1 -0
- package/package.json +78 -0
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Error Handling Utilities and Debugging Tools (Phase 3.2.3)
|
|
3
|
+
*
|
|
4
|
+
* Comprehensive utilities for error handling, debugging, and development tools.
|
|
5
|
+
* Provides helper functions, debugging aids, and error analysis tools.
|
|
6
|
+
*/
|
|
7
|
+
import type { ErrorCategory, ErrorSeverity, TachUIError } from './error-boundary';
|
|
8
|
+
import type { ErrorAggregation, LogEntry } from './error-reporting';
|
|
9
|
+
/**
|
|
10
|
+
* Error analysis result
|
|
11
|
+
*/
|
|
12
|
+
export interface ErrorAnalysis {
|
|
13
|
+
totalErrors: number;
|
|
14
|
+
errorsByCategory: Record<ErrorCategory, number>;
|
|
15
|
+
errorsBySeverity: Record<ErrorSeverity, number>;
|
|
16
|
+
topErrors: ErrorAggregation[];
|
|
17
|
+
recentErrors: TachUIError[];
|
|
18
|
+
errorTrends: {
|
|
19
|
+
category: ErrorCategory;
|
|
20
|
+
trend: 'increasing' | 'decreasing' | 'stable';
|
|
21
|
+
change: number;
|
|
22
|
+
}[];
|
|
23
|
+
recommendations: string[];
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Stack trace analysis
|
|
27
|
+
*/
|
|
28
|
+
export interface StackTraceAnalysis {
|
|
29
|
+
frames: {
|
|
30
|
+
function: string;
|
|
31
|
+
file: string;
|
|
32
|
+
line: number;
|
|
33
|
+
column: number;
|
|
34
|
+
source?: string;
|
|
35
|
+
}[];
|
|
36
|
+
rootCause?: string;
|
|
37
|
+
affectedComponents: string[];
|
|
38
|
+
suggestedFixes: string[];
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Performance impact analysis
|
|
42
|
+
*/
|
|
43
|
+
export interface PerformanceImpact {
|
|
44
|
+
errorCount: number;
|
|
45
|
+
averageRenderTime: number;
|
|
46
|
+
memoryUsage: number;
|
|
47
|
+
affectedComponents: string[];
|
|
48
|
+
performanceDegradation: number;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Error pattern detector
|
|
52
|
+
*/
|
|
53
|
+
export declare class ErrorPatternDetector {
|
|
54
|
+
private windowSize;
|
|
55
|
+
/**
|
|
56
|
+
* Analyze error patterns
|
|
57
|
+
*/
|
|
58
|
+
analyzePatterns(errors: TachUIError[]): {
|
|
59
|
+
patterns: {
|
|
60
|
+
pattern: string;
|
|
61
|
+
count: number;
|
|
62
|
+
severity: 'low' | 'medium' | 'high';
|
|
63
|
+
}[];
|
|
64
|
+
cascadingErrors: TachUIError[][];
|
|
65
|
+
correlations: {
|
|
66
|
+
error1: string;
|
|
67
|
+
error2: string;
|
|
68
|
+
correlation: number;
|
|
69
|
+
}[];
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Detect error patterns
|
|
73
|
+
*/
|
|
74
|
+
private detectErrorPatterns;
|
|
75
|
+
/**
|
|
76
|
+
* Extract pattern from error message
|
|
77
|
+
*/
|
|
78
|
+
private extractMessagePattern;
|
|
79
|
+
/**
|
|
80
|
+
* Detect cascading errors (errors that happen close together)
|
|
81
|
+
*/
|
|
82
|
+
private detectCascadingErrors;
|
|
83
|
+
/**
|
|
84
|
+
* Detect error correlations
|
|
85
|
+
*/
|
|
86
|
+
private detectErrorCorrelations;
|
|
87
|
+
/**
|
|
88
|
+
* Calculate correlation between two error types
|
|
89
|
+
*/
|
|
90
|
+
private calculateCorrelation;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Stack trace analyzer
|
|
94
|
+
*/
|
|
95
|
+
export declare class StackTraceAnalyzer {
|
|
96
|
+
/**
|
|
97
|
+
* Analyze stack trace
|
|
98
|
+
*/
|
|
99
|
+
analyzeStackTrace(error: TachUIError): StackTraceAnalysis;
|
|
100
|
+
/**
|
|
101
|
+
* Parse stack trace into frames
|
|
102
|
+
*/
|
|
103
|
+
private parseStackTrace;
|
|
104
|
+
/**
|
|
105
|
+
* Identify root cause from stack trace
|
|
106
|
+
*/
|
|
107
|
+
private identifyRootCause;
|
|
108
|
+
/**
|
|
109
|
+
* Extract affected components from stack trace
|
|
110
|
+
*/
|
|
111
|
+
private extractAffectedComponents;
|
|
112
|
+
/**
|
|
113
|
+
* Generate suggested fixes
|
|
114
|
+
*/
|
|
115
|
+
private generateSuggestedFixes;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Performance impact analyzer
|
|
119
|
+
*/
|
|
120
|
+
export declare class PerformanceImpactAnalyzer {
|
|
121
|
+
/**
|
|
122
|
+
* Analyze performance impact of errors
|
|
123
|
+
*/
|
|
124
|
+
analyzePerformanceImpact(errors: TachUIError[]): PerformanceImpact;
|
|
125
|
+
/**
|
|
126
|
+
* Calculate average render time for affected components
|
|
127
|
+
*/
|
|
128
|
+
private calculateAverageRenderTime;
|
|
129
|
+
/**
|
|
130
|
+
* Calculate memory usage impact
|
|
131
|
+
*/
|
|
132
|
+
private calculateMemoryUsage;
|
|
133
|
+
/**
|
|
134
|
+
* Calculate performance degradation percentage
|
|
135
|
+
*/
|
|
136
|
+
private calculatePerformanceDegradation;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Error debugging utilities
|
|
140
|
+
*/
|
|
141
|
+
export declare const errorDebugUtils: {
|
|
142
|
+
/**
|
|
143
|
+
* Generate comprehensive error report
|
|
144
|
+
*/
|
|
145
|
+
generateErrorReport(): ErrorAnalysis;
|
|
146
|
+
/**
|
|
147
|
+
* Generate recommendations based on error analysis
|
|
148
|
+
*/
|
|
149
|
+
generateRecommendations(errors: TachUIError[], _aggregations: ErrorAggregation[], patterns: any): string[];
|
|
150
|
+
/**
|
|
151
|
+
* Debug specific error
|
|
152
|
+
*/
|
|
153
|
+
debugError(errorId: string): {
|
|
154
|
+
error: TachUIError | null;
|
|
155
|
+
stackTrace: StackTraceAnalysis;
|
|
156
|
+
relatedErrors: TachUIError[];
|
|
157
|
+
performanceImpact: PerformanceImpact;
|
|
158
|
+
suggestions: string[];
|
|
159
|
+
} | null;
|
|
160
|
+
/**
|
|
161
|
+
* Find related errors
|
|
162
|
+
*/
|
|
163
|
+
findRelatedErrors(error: TachUIError): TachUIError[];
|
|
164
|
+
/**
|
|
165
|
+
* Generate error-specific suggestions
|
|
166
|
+
*/
|
|
167
|
+
generateErrorSuggestions(error: TachUIError, stackTrace: StackTraceAnalysis, relatedErrors: TachUIError[]): string[];
|
|
168
|
+
/**
|
|
169
|
+
* Log error analysis to console
|
|
170
|
+
*/
|
|
171
|
+
logErrorAnalysis(): void;
|
|
172
|
+
/**
|
|
173
|
+
* Export error data for external analysis
|
|
174
|
+
*/
|
|
175
|
+
exportErrorData(): {
|
|
176
|
+
errors: TachUIError[];
|
|
177
|
+
logs: LogEntry[];
|
|
178
|
+
aggregations: ErrorAggregation[];
|
|
179
|
+
analysis: ErrorAnalysis;
|
|
180
|
+
timestamp: number;
|
|
181
|
+
};
|
|
182
|
+
/**
|
|
183
|
+
* Simulate error for testing
|
|
184
|
+
*/
|
|
185
|
+
simulateError(category?: ErrorCategory, severity?: ErrorSeverity, message?: string): void;
|
|
186
|
+
/**
|
|
187
|
+
* Clear all error data
|
|
188
|
+
*/
|
|
189
|
+
clearAllErrorData(): void;
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
* Development mode error utilities
|
|
193
|
+
*/
|
|
194
|
+
export declare const devErrorUtils: {
|
|
195
|
+
/**
|
|
196
|
+
* Enable enhanced error debugging
|
|
197
|
+
*/
|
|
198
|
+
enableEnhancedDebugging(): void;
|
|
199
|
+
/**
|
|
200
|
+
* Setup error monitoring dashboard
|
|
201
|
+
*/
|
|
202
|
+
setupErrorDashboard(): void;
|
|
203
|
+
};
|
|
204
|
+
//# sourceMappingURL=error-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-utils.d.ts","sourceRoot":"","sources":["../../src/runtime/error-utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EACV,aAAa,EACb,aAAa,EACb,WAAW,EACZ,MAAM,kBAAkB,CAAA;AAEzB,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAGnE;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,CAAA;IACn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AE,CAAA;KACtB,GAAG,IAAI;IA4BR;;OAEG;6BACsB,WAAW,GAAG,WAAW,EAAE;IAYpD;;OAEG;oCAEM,WAAW,cACN,kBAAkB,iBACf,WAAW,EAAE,GAC3B,MAAM,EAAE;IAkBX;;OAEG;wBACiB,IAAI;IAyBxB;;OAEG;uBACgB;QACjB,MAAM,EAAE,WAAW,EAAE,CAAA;QACrB,IAAI,EAAE,QAAQ,EAAE,CAAA;QAChB,YAAY,EAAE,gBAAgB,EAAE,CAAA;QAChC,QAAQ,EAAE,aAAa,CAAA;QACvB,SAAS,EAAE,MAAM,CAAA;KAClB;IAUD;;OAEG;6BAES,aAAa,aACb,aAAa,YACd,MAAM,GACd,IAAI;IAUP;;OAEG;yBACkB,IAAI;CAM1B,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,aAAa;IACxB;;OAEG;+BACwB,IAAI;IA6B/B;;OAEG;2BACoB,IAAI;CA2B5B,CAAA"}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Performance Monitoring System (Phase 3.2.2)
|
|
3
|
+
*
|
|
4
|
+
* Comprehensive performance monitoring and debugging tools for TachUI.
|
|
5
|
+
* Tracks component lifecycle metrics, reactive system performance,
|
|
6
|
+
* and provides detailed debugging information.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Performance metric types
|
|
10
|
+
*/
|
|
11
|
+
export interface PerformanceMetric {
|
|
12
|
+
name: string;
|
|
13
|
+
value: number;
|
|
14
|
+
unit: 'ms' | 'bytes' | 'count';
|
|
15
|
+
timestamp: number;
|
|
16
|
+
category: 'component' | 'reactive' | 'render' | 'memory';
|
|
17
|
+
componentId?: string;
|
|
18
|
+
phase?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Component performance data
|
|
22
|
+
*/
|
|
23
|
+
export interface ComponentMetrics {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
mountTime: number;
|
|
27
|
+
renderTime: number;
|
|
28
|
+
updateCount: number;
|
|
29
|
+
propsChanges: number;
|
|
30
|
+
lastRenderDuration: number;
|
|
31
|
+
memoryUsage: number;
|
|
32
|
+
children: ComponentMetrics[];
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Reactive system metrics
|
|
36
|
+
*/
|
|
37
|
+
export interface ReactiveMetrics {
|
|
38
|
+
signalCount: number;
|
|
39
|
+
computedCount: number;
|
|
40
|
+
effectCount: number;
|
|
41
|
+
signalUpdates: number;
|
|
42
|
+
computedRecalculations: number;
|
|
43
|
+
effectExecutions: number;
|
|
44
|
+
averageUpdateTime: number;
|
|
45
|
+
memoryFootprint: number;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Performance monitoring options
|
|
49
|
+
*/
|
|
50
|
+
export interface MonitoringOptions {
|
|
51
|
+
enabled: boolean;
|
|
52
|
+
trackComponents: boolean;
|
|
53
|
+
trackReactive: boolean;
|
|
54
|
+
trackMemory: boolean;
|
|
55
|
+
trackRender: boolean;
|
|
56
|
+
sampleRate: number;
|
|
57
|
+
maxMetrics: number;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Performance event listener
|
|
61
|
+
*/
|
|
62
|
+
export type PerformanceListener = (metric: PerformanceMetric) => void;
|
|
63
|
+
/**
|
|
64
|
+
* Comprehensive performance monitoring system
|
|
65
|
+
*/
|
|
66
|
+
export declare class PerformanceMonitor {
|
|
67
|
+
private static instance;
|
|
68
|
+
private options;
|
|
69
|
+
private metrics;
|
|
70
|
+
private componentMetrics;
|
|
71
|
+
private reactiveMetrics;
|
|
72
|
+
private listeners;
|
|
73
|
+
private timers;
|
|
74
|
+
private metricsSignal;
|
|
75
|
+
private setMetrics;
|
|
76
|
+
private componentMetricsSignal;
|
|
77
|
+
private setComponentMetrics;
|
|
78
|
+
constructor();
|
|
79
|
+
static getInstance(): PerformanceMonitor;
|
|
80
|
+
/**
|
|
81
|
+
* Configure monitoring options
|
|
82
|
+
*/
|
|
83
|
+
configure(options: Partial<MonitoringOptions>): void;
|
|
84
|
+
/**
|
|
85
|
+
* Enable performance monitoring
|
|
86
|
+
*/
|
|
87
|
+
enable(): void;
|
|
88
|
+
/**
|
|
89
|
+
* Disable performance monitoring
|
|
90
|
+
*/
|
|
91
|
+
disable(): void;
|
|
92
|
+
/**
|
|
93
|
+
* Check if monitoring is enabled
|
|
94
|
+
*/
|
|
95
|
+
isEnabled(): boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Start timing an operation
|
|
98
|
+
*/
|
|
99
|
+
startTimer(name: string): void;
|
|
100
|
+
/**
|
|
101
|
+
* End timing and record metric
|
|
102
|
+
*/
|
|
103
|
+
endTimer(name: string, category?: PerformanceMetric['category'], componentId?: string): number;
|
|
104
|
+
/**
|
|
105
|
+
* Record a custom metric
|
|
106
|
+
*/
|
|
107
|
+
recordMetric(metric: PerformanceMetric): void;
|
|
108
|
+
/**
|
|
109
|
+
* Track component mount
|
|
110
|
+
*/
|
|
111
|
+
trackComponentMount(componentId: string, componentName: string): void;
|
|
112
|
+
/**
|
|
113
|
+
* Track component unmount
|
|
114
|
+
*/
|
|
115
|
+
trackComponentUnmount(componentId: string): void;
|
|
116
|
+
/**
|
|
117
|
+
* Track component render
|
|
118
|
+
*/
|
|
119
|
+
trackComponentRender(componentId: string, duration: number): void;
|
|
120
|
+
/**
|
|
121
|
+
* Track props changes
|
|
122
|
+
*/
|
|
123
|
+
trackPropsChange(componentId: string, changedKeys: string[]): void;
|
|
124
|
+
/**
|
|
125
|
+
* Track reactive system metrics
|
|
126
|
+
*/
|
|
127
|
+
trackReactiveOperation(type: 'signal' | 'computed' | 'effect', operation: 'create' | 'update' | 'execute', duration?: number): void;
|
|
128
|
+
/**
|
|
129
|
+
* Track memory usage
|
|
130
|
+
*/
|
|
131
|
+
trackMemoryUsage(): void;
|
|
132
|
+
/**
|
|
133
|
+
* Estimate memory usage (simplified)
|
|
134
|
+
*/
|
|
135
|
+
private estimateMemoryUsage;
|
|
136
|
+
/**
|
|
137
|
+
* Get all metrics
|
|
138
|
+
*/
|
|
139
|
+
getMetrics(): PerformanceMetric[];
|
|
140
|
+
/**
|
|
141
|
+
* Get reactive metrics signal
|
|
142
|
+
*/
|
|
143
|
+
getMetricsSignal(): () => PerformanceMetric[];
|
|
144
|
+
/**
|
|
145
|
+
* Get component metrics
|
|
146
|
+
*/
|
|
147
|
+
getComponentMetrics(): Map<string, ComponentMetrics>;
|
|
148
|
+
/**
|
|
149
|
+
* Get component metrics signal
|
|
150
|
+
*/
|
|
151
|
+
getComponentMetricsSignal(): () => Map<string, ComponentMetrics>;
|
|
152
|
+
/**
|
|
153
|
+
* Get reactive system metrics
|
|
154
|
+
*/
|
|
155
|
+
getReactiveMetrics(): ReactiveMetrics;
|
|
156
|
+
/**
|
|
157
|
+
* Get metrics by category
|
|
158
|
+
*/
|
|
159
|
+
getMetricsByCategory(category: PerformanceMetric['category']): PerformanceMetric[];
|
|
160
|
+
/**
|
|
161
|
+
* Get metrics by component
|
|
162
|
+
*/
|
|
163
|
+
getMetricsByComponent(componentId: string): PerformanceMetric[];
|
|
164
|
+
/**
|
|
165
|
+
* Get average metric value
|
|
166
|
+
*/
|
|
167
|
+
getAverageMetric(name: string): number;
|
|
168
|
+
/**
|
|
169
|
+
* Get performance summary
|
|
170
|
+
*/
|
|
171
|
+
getSummary(): {
|
|
172
|
+
totalMetrics: number;
|
|
173
|
+
componentCount: number;
|
|
174
|
+
reactive: ReactiveMetrics;
|
|
175
|
+
averageRenderTime: number;
|
|
176
|
+
averageMemoryUsage: number;
|
|
177
|
+
mostActiveComponent: string | null;
|
|
178
|
+
};
|
|
179
|
+
/**
|
|
180
|
+
* Add performance listener
|
|
181
|
+
*/
|
|
182
|
+
addListener(listener: PerformanceListener): () => void;
|
|
183
|
+
/**
|
|
184
|
+
* Clear all metrics
|
|
185
|
+
*/
|
|
186
|
+
clear(): void;
|
|
187
|
+
/**
|
|
188
|
+
* Export metrics to JSON
|
|
189
|
+
*/
|
|
190
|
+
exportMetrics(): string;
|
|
191
|
+
/**
|
|
192
|
+
* Import metrics from JSON
|
|
193
|
+
*/
|
|
194
|
+
importMetrics(json: string): void;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Global performance monitor instance
|
|
198
|
+
*/
|
|
199
|
+
export declare const globalPerformanceMonitor: PerformanceMonitor;
|
|
200
|
+
/**
|
|
201
|
+
* Performance monitoring decorators and utilities
|
|
202
|
+
*/
|
|
203
|
+
export declare const performanceUtils: {
|
|
204
|
+
/**
|
|
205
|
+
* Measure function execution time
|
|
206
|
+
*/
|
|
207
|
+
measure<T>(name: string, fn: () => T, category?: PerformanceMetric["category"]): T;
|
|
208
|
+
/**
|
|
209
|
+
* Async function measurement
|
|
210
|
+
*/
|
|
211
|
+
measureAsync<T>(name: string, fn: () => Promise<T>, category?: PerformanceMetric["category"]): Promise<T>;
|
|
212
|
+
/**
|
|
213
|
+
* Create a performance tracking wrapper for components
|
|
214
|
+
*/
|
|
215
|
+
withPerformanceTracking<T extends (...args: any[]) => any>(componentFn: T, componentName: string): T;
|
|
216
|
+
};
|
|
217
|
+
//# sourceMappingURL=performance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"performance.d.ts","sourceRoot":"","sources":["../../src/runtime/performance.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,IAAI,GAAG,OAAO,GAAG,OAAO,CAAA;IAC9B,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,WAAW,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAA;IACxD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,EAAE,E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;OAEG;4BACqB,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,eAC1C,CAAC,iBACC,MAAM,GACpB,CAAC;CAgBL,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Testing Utilities
|
|
3
|
+
*
|
|
4
|
+
* Provides component testing helpers, mock data providers,
|
|
5
|
+
* visual regression testing, and accessibility testing.
|
|
6
|
+
*/
|
|
7
|
+
export declare const ComponentTester: {
|
|
8
|
+
create: (component: any) => {
|
|
9
|
+
withProps: (props: any) => /*elided*/ any;
|
|
10
|
+
withMocks: (mocks: any) => /*elided*/ any;
|
|
11
|
+
withBreakpoint: (breakpoint: string) => /*elided*/ any;
|
|
12
|
+
withTheme: (theme: string) => /*elided*/ any;
|
|
13
|
+
test: (name: string, fn: Function) => void;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export declare const MockProvider: {
|
|
17
|
+
create: (mocks: any) => any;
|
|
18
|
+
};
|
|
19
|
+
export declare const SnapshotTester: {
|
|
20
|
+
create: (_config: any) => {
|
|
21
|
+
snapshot: (name: string, _component: any) => void;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare const A11yTester: {
|
|
25
|
+
create: (_config: any) => {
|
|
26
|
+
test: (_component: any) => void;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/testing/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,eAAO,MAAM,eAAe;wBACN,GAAG;2BACO,GAAG;2BAMH,GAAG;qCAGO,MAAM;2BAGhB,MAAM;qBAGrB,MAAM,MAAM,QAAQ;;CAKpC,CAAA;AAED,eAAO,MAAM,YAAY;oBACP,GAAG;CACpB,CAAA;AAED,eAAO,MAAM,cAAc;sBACP,GAAG;yBACF,MAAM,cAAc,GAAG;;CAI3C,CAAA;AAED,eAAO,MAAM,UAAU;sBACH,GAAG;2BACA,GAAG;;CAIzB,CAAA"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const ComponentTester = {
|
|
2
|
+
create: (component) => ({
|
|
3
|
+
withProps: function(props) {
|
|
4
|
+
return ComponentTester.create({
|
|
5
|
+
...component,
|
|
6
|
+
props: { ...component.props, ...props }
|
|
7
|
+
});
|
|
8
|
+
},
|
|
9
|
+
withMocks: function(mocks) {
|
|
10
|
+
return ComponentTester.create({ ...component, mocks });
|
|
11
|
+
},
|
|
12
|
+
withBreakpoint: function(breakpoint) {
|
|
13
|
+
return ComponentTester.create({ ...component, breakpoint });
|
|
14
|
+
},
|
|
15
|
+
withTheme: function(theme) {
|
|
16
|
+
return ComponentTester.create({ ...component, theme });
|
|
17
|
+
},
|
|
18
|
+
test: (name, fn) => {
|
|
19
|
+
console.log(`Running test: ${name}`);
|
|
20
|
+
fn(component);
|
|
21
|
+
}
|
|
22
|
+
})
|
|
23
|
+
};
|
|
24
|
+
const MockProvider = {
|
|
25
|
+
create: (mocks) => mocks
|
|
26
|
+
};
|
|
27
|
+
const SnapshotTester = {
|
|
28
|
+
create: (_config) => ({
|
|
29
|
+
snapshot: (name, _component) => {
|
|
30
|
+
console.log(`Creating snapshot: ${name}`);
|
|
31
|
+
}
|
|
32
|
+
})
|
|
33
|
+
};
|
|
34
|
+
const A11yTester = {
|
|
35
|
+
create: (_config) => ({
|
|
36
|
+
test: (_component) => {
|
|
37
|
+
console.log("Running accessibility tests");
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
A11yTester,
|
|
43
|
+
ComponentTester,
|
|
44
|
+
MockProvider,
|
|
45
|
+
SnapshotTester
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/testing/index.ts"],"sourcesContent":["/**\n * Testing Utilities\n *\n * Provides component testing helpers, mock data providers,\n * visual regression testing, and accessibility testing.\n */\n\n// Placeholder implementation - to be expanded based on design document\nexport const ComponentTester = {\n create: (component: any) => ({\n withProps: function (props: any) {\n return ComponentTester.create({\n ...component,\n props: { ...component.props, ...props },\n })\n },\n withMocks: function (mocks: any) {\n return ComponentTester.create({ ...component, mocks })\n },\n withBreakpoint: function (breakpoint: string) {\n return ComponentTester.create({ ...component, breakpoint })\n },\n withTheme: function (theme: string) {\n return ComponentTester.create({ ...component, theme })\n },\n test: (name: string, fn: Function) => {\n console.log(`Running test: ${name}`)\n fn(component)\n },\n }),\n}\n\nexport const MockProvider = {\n create: (mocks: any) => mocks,\n}\n\nexport const SnapshotTester = {\n create: (_config: any) => ({\n snapshot: (name: string, _component: any) => {\n console.log(`Creating snapshot: ${name}`)\n },\n }),\n}\n\nexport const A11yTester = {\n create: (_config: any) => ({\n test: (_component: any) => {\n console.log('Running accessibility tests')\n },\n }),\n}\n"],"names":[],"mappings":"AAQO,MAAM,kBAAkB;AAAA,EAC7B,QAAQ,CAAC,eAAoB;AAAA,IAC3B,WAAW,SAAU,OAAY;AAC/B,aAAO,gBAAgB,OAAO;AAAA,QAC5B,GAAG;AAAA,QACH,OAAO,EAAE,GAAG,UAAU,OAAO,GAAG,MAAA;AAAA,MAAM,CACvC;AAAA,IACH;AAAA,IACA,WAAW,SAAU,OAAY;AAC/B,aAAO,gBAAgB,OAAO,EAAE,GAAG,WAAW,OAAO;AAAA,IACvD;AAAA,IACA,gBAAgB,SAAU,YAAoB;AAC5C,aAAO,gBAAgB,OAAO,EAAE,GAAG,WAAW,YAAY;AAAA,IAC5D;AAAA,IACA,WAAW,SAAU,OAAe;AAClC,aAAO,gBAAgB,OAAO,EAAE,GAAG,WAAW,OAAO;AAAA,IACvD;AAAA,IACA,MAAM,CAAC,MAAc,OAAiB;AACpC,cAAQ,IAAI,iBAAiB,IAAI,EAAE;AACnC,SAAG,SAAS;AAAA,IACd;AAAA,EAAA;AAEJ;AAEO,MAAM,eAAe;AAAA,EAC1B,QAAQ,CAAC,UAAe;AAC1B;AAEO,MAAM,iBAAiB;AAAA,EAC5B,QAAQ,CAAC,aAAkB;AAAA,IACzB,UAAU,CAAC,MAAc,eAAoB;AAC3C,cAAQ,IAAI,sBAAsB,IAAI,EAAE;AAAA,IAC1C;AAAA,EAAA;AAEJ;AAEO,MAAM,aAAa;AAAA,EACxB,QAAQ,CAAC,aAAkB;AAAA,IACzB,MAAM,CAAC,eAAoB;AACzB,cAAQ,IAAI,6BAA6B;AAAA,IAC3C;AAAA,EAAA;AAEJ;"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Debug Tools Stub - Lightweight Production Version
|
|
3
|
+
*
|
|
4
|
+
* Minimal debug tools for production builds.
|
|
5
|
+
* Full implementation moved to @tachui/devtools package.
|
|
6
|
+
*/
|
|
7
|
+
export type ValidationDebugEventType = 'validation-start' | 'validation-end' | 'validation-error' | 'validation-recovery' | 'component-mount' | 'component-update' | 'component-unmount' | 'cache-hit' | 'cache-miss' | 'performance-warning';
|
|
8
|
+
export interface DebugEvent {
|
|
9
|
+
id: string;
|
|
10
|
+
type: ValidationDebugEventType;
|
|
11
|
+
timestamp: number;
|
|
12
|
+
componentType?: string;
|
|
13
|
+
componentId?: string;
|
|
14
|
+
message: string;
|
|
15
|
+
data?: any;
|
|
16
|
+
}
|
|
17
|
+
export interface DebugSession {
|
|
18
|
+
id: string;
|
|
19
|
+
startTime: number;
|
|
20
|
+
endTime?: number;
|
|
21
|
+
validationEvents: DebugEvent[];
|
|
22
|
+
components: any[];
|
|
23
|
+
errors: any[];
|
|
24
|
+
performance: any;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Lightweight debug tools stub for production
|
|
28
|
+
*/
|
|
29
|
+
declare class ValidationDebuggerStub {
|
|
30
|
+
private static instance;
|
|
31
|
+
static getInstance(): ValidationDebuggerStub;
|
|
32
|
+
startSession(_sessionId?: string): string;
|
|
33
|
+
endSession(): DebugSession | null;
|
|
34
|
+
logEvent(_type: ValidationDebugEventType, _message: string, _data?: any): void;
|
|
35
|
+
registerComponent(_component: any, _type: string, _props: any): string;
|
|
36
|
+
updateComponent(_componentId: string, _phase: string, _data?: any): void;
|
|
37
|
+
recordValidationError(_error: any, _componentId?: string): void;
|
|
38
|
+
recordValidationRecovery(_originalError: string, _strategy: string, _componentId?: string): void;
|
|
39
|
+
addEventListener(_type: ValidationDebugEventType, _listener: (event: DebugEvent) => void): void;
|
|
40
|
+
removeEventListener(_type: ValidationDebugEventType, _listener: Function): void;
|
|
41
|
+
getSession(_sessionId: string): DebugSession | undefined;
|
|
42
|
+
getCurrentSession(): DebugSession | null;
|
|
43
|
+
getAllSessions(): DebugSession[];
|
|
44
|
+
searchEvents(_criteria: any): DebugEvent[];
|
|
45
|
+
analyzeComponent(_componentId: string): any;
|
|
46
|
+
generatePerformanceReport(): string;
|
|
47
|
+
clearDebugData(): void;
|
|
48
|
+
exportDebugData(): string;
|
|
49
|
+
importDebugData(_jsonData: string): void;
|
|
50
|
+
}
|
|
51
|
+
export declare const validationDebugger: ValidationDebuggerStub;
|
|
52
|
+
export declare const ValidationDebugUtils: {
|
|
53
|
+
startSession: (_sessionId?: string) => string;
|
|
54
|
+
endSession: () => null;
|
|
55
|
+
logEvent: (_type: ValidationDebugEventType, _message: string, _data?: any) => void;
|
|
56
|
+
registerComponent: (_component: any, _type: string, _props: any) => string;
|
|
57
|
+
recordError: (_error: any, _componentId?: string) => void;
|
|
58
|
+
recordRecovery: (_originalError: string, _strategy: string, _componentId?: string) => void;
|
|
59
|
+
getPerformanceReport: () => string;
|
|
60
|
+
searchEvents: (_criteria: any) => never[];
|
|
61
|
+
export: () => string;
|
|
62
|
+
import: (_data: string) => void;
|
|
63
|
+
clear: () => void;
|
|
64
|
+
test: () => void;
|
|
65
|
+
};
|
|
66
|
+
export {};
|
|
67
|
+
//# sourceMappingURL=debug-t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