@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,327 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Advanced Developer Debugging Tools - Phase 1D
|
|
3
|
+
*
|
|
4
|
+
* Enhanced validation state inspection, visual debugging tools,
|
|
5
|
+
* and comprehensive developer diagnostics.
|
|
6
|
+
*/
|
|
7
|
+
import type { FormattedErrorMessage } from './enhanced-errors';
|
|
8
|
+
export type ValidationDebugEventType = 'validation-start' | 'validation-complete' | 'validation-error' | 'validation-warning' | 'validation-end' | 'component-validation' | 'modifier-validation';
|
|
9
|
+
export interface DebugEvent {
|
|
10
|
+
type: string;
|
|
11
|
+
timestamp: number;
|
|
12
|
+
componentId?: string;
|
|
13
|
+
componentName?: string;
|
|
14
|
+
data: any;
|
|
15
|
+
stack?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Advanced debugging configuration
|
|
19
|
+
*/
|
|
20
|
+
export interface AdvancedDebuggingConfig {
|
|
21
|
+
enableVisualDebugging: boolean;
|
|
22
|
+
highlightValidationErrors: boolean;
|
|
23
|
+
showComponentBoundaries: boolean;
|
|
24
|
+
showModifierEffects: boolean;
|
|
25
|
+
enableStateInspection: boolean;
|
|
26
|
+
trackStateChanges: boolean;
|
|
27
|
+
showStateHistory: boolean;
|
|
28
|
+
maxHistorySize: number;
|
|
29
|
+
enablePerformanceDebugging: boolean;
|
|
30
|
+
trackRenderTimes: boolean;
|
|
31
|
+
showMemoryUsage: boolean;
|
|
32
|
+
enableFrameProfiler: boolean;
|
|
33
|
+
enableInteractiveMode: boolean;
|
|
34
|
+
showDebugPanel: boolean;
|
|
35
|
+
enableBreakpoints: boolean;
|
|
36
|
+
enableStepThrough: boolean;
|
|
37
|
+
enableDebugExport: boolean;
|
|
38
|
+
exportFormat: 'json' | 'csv' | 'html';
|
|
39
|
+
includeSourceMaps: boolean;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Component state snapshot for debugging
|
|
43
|
+
*/
|
|
44
|
+
export interface ComponentStateSnapshot {
|
|
45
|
+
id: string;
|
|
46
|
+
componentType: string;
|
|
47
|
+
timestamp: number;
|
|
48
|
+
props: Record<string, any>;
|
|
49
|
+
state: Record<string, any>;
|
|
50
|
+
modifiers: string[];
|
|
51
|
+
validationErrors: FormattedErrorMessage[];
|
|
52
|
+
validationWarnings: FormattedErrorMessage[];
|
|
53
|
+
isValid: boolean;
|
|
54
|
+
renderTime: number;
|
|
55
|
+
memoryUsage: number;
|
|
56
|
+
updateCount: number;
|
|
57
|
+
domNode?: {
|
|
58
|
+
tagName: string;
|
|
59
|
+
className: string;
|
|
60
|
+
attributes: Record<string, string>;
|
|
61
|
+
computedStyles: Record<string, string>;
|
|
62
|
+
};
|
|
63
|
+
parent?: string;
|
|
64
|
+
children: string[];
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Validation state inspector
|
|
68
|
+
*/
|
|
69
|
+
export interface ValidationStateInspector {
|
|
70
|
+
id: string;
|
|
71
|
+
target: 'component' | 'modifier' | 'global';
|
|
72
|
+
targetId?: string;
|
|
73
|
+
watchProperties: string[];
|
|
74
|
+
watchEvents: ValidationDebugEventType[];
|
|
75
|
+
snapshots: ComponentStateSnapshot[];
|
|
76
|
+
events: DebugEvent[];
|
|
77
|
+
trends: {
|
|
78
|
+
errorFrequency: number;
|
|
79
|
+
performanceRegression: boolean;
|
|
80
|
+
memoryLeaks: boolean;
|
|
81
|
+
stateInconsistencies: boolean;
|
|
82
|
+
};
|
|
83
|
+
isActive: boolean;
|
|
84
|
+
startTime: number;
|
|
85
|
+
lastUpdate: number;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Visual debugging overlay
|
|
89
|
+
*/
|
|
90
|
+
export interface VisualDebuggingOverlay {
|
|
91
|
+
id: string;
|
|
92
|
+
type: 'error-highlight' | 'component-boundary' | 'modifier-effect' | 'performance-heatmap';
|
|
93
|
+
color: string;
|
|
94
|
+
opacity: number;
|
|
95
|
+
strokeWidth: number;
|
|
96
|
+
animation?: 'pulse' | 'fade' | 'shake';
|
|
97
|
+
bounds: {
|
|
98
|
+
x: number;
|
|
99
|
+
y: number;
|
|
100
|
+
width: number;
|
|
101
|
+
height: number;
|
|
102
|
+
};
|
|
103
|
+
label?: string;
|
|
104
|
+
tooltip?: string;
|
|
105
|
+
additionalInfo?: Record<string, any>;
|
|
106
|
+
duration: number;
|
|
107
|
+
createdAt: number;
|
|
108
|
+
expiresAt: number;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Advanced debugging session
|
|
112
|
+
*/
|
|
113
|
+
export interface AdvancedDebuggingSession {
|
|
114
|
+
id: string;
|
|
115
|
+
name: string;
|
|
116
|
+
description: string;
|
|
117
|
+
startTime: number;
|
|
118
|
+
endTime?: number;
|
|
119
|
+
duration?: number;
|
|
120
|
+
components: Map<string, ComponentStateSnapshot[]>;
|
|
121
|
+
validators: ValidationStateInspector[];
|
|
122
|
+
overlays: VisualDebuggingOverlay[];
|
|
123
|
+
events: DebugEvent[];
|
|
124
|
+
summary: {
|
|
125
|
+
totalErrors: number;
|
|
126
|
+
totalWarnings: number;
|
|
127
|
+
criticalIssues: string[];
|
|
128
|
+
performanceIssues: string[];
|
|
129
|
+
recommendations: string[];
|
|
130
|
+
};
|
|
131
|
+
exported: boolean;
|
|
132
|
+
exportFormat?: string;
|
|
133
|
+
exportPath?: string;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Advanced validation state inspector
|
|
137
|
+
*/
|
|
138
|
+
export declare class AdvancedValidationInspector {
|
|
139
|
+
private inspectors;
|
|
140
|
+
private snapshots;
|
|
141
|
+
private overlays;
|
|
142
|
+
private activeSession;
|
|
143
|
+
/**
|
|
144
|
+
* Create a new state inspector
|
|
145
|
+
*/
|
|
146
|
+
createInspector(target: 'component' | 'modifier' | 'global', targetId?: string, options?: {
|
|
147
|
+
watchProperties?: string[];
|
|
148
|
+
watchEvents?: ValidationDebugEventType[];
|
|
149
|
+
}): string;
|
|
150
|
+
/**
|
|
151
|
+
* Take a component state snapshot
|
|
152
|
+
*/
|
|
153
|
+
takeSnapshot(componentId: string, componentData: {
|
|
154
|
+
type: string;
|
|
155
|
+
props: Record<string, any>;
|
|
156
|
+
state: Record<string, any>;
|
|
157
|
+
modifiers: string[];
|
|
158
|
+
domElement?: HTMLElement;
|
|
159
|
+
}): string;
|
|
160
|
+
/**
|
|
161
|
+
* Add visual debugging overlay
|
|
162
|
+
*/
|
|
163
|
+
addVisualOverlay(type: VisualDebuggingOverlay['type'], bounds: {
|
|
164
|
+
x: number;
|
|
165
|
+
y: number;
|
|
166
|
+
width: number;
|
|
167
|
+
height: number;
|
|
168
|
+
}, options?: {
|
|
169
|
+
color?: string;
|
|
170
|
+
label?: string;
|
|
171
|
+
tooltip?: string;
|
|
172
|
+
duration?: number;
|
|
173
|
+
animation?: VisualDebuggingOverlay['animation'];
|
|
174
|
+
}): string;
|
|
175
|
+
/**
|
|
176
|
+
* Start advanced debugging session
|
|
177
|
+
*/
|
|
178
|
+
startSession(name: string, description?: string): string;
|
|
179
|
+
/**
|
|
180
|
+
* Stop debugging session and generate report
|
|
181
|
+
*/
|
|
182
|
+
stopSession(): AdvancedDebuggingSession | null;
|
|
183
|
+
/**
|
|
184
|
+
* Get component state history
|
|
185
|
+
*/
|
|
186
|
+
getComponentHistory(componentId: string): ComponentStateSnapshot[];
|
|
187
|
+
/**
|
|
188
|
+
* Get validation trends analysis
|
|
189
|
+
*/
|
|
190
|
+
getValidationTrends(componentId?: string): {
|
|
191
|
+
errorRate: number;
|
|
192
|
+
warningRate: number;
|
|
193
|
+
performanceRegression: boolean;
|
|
194
|
+
memoryTrend: 'increasing' | 'stable' | 'decreasing';
|
|
195
|
+
recommendations: string[];
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* Export debugging session data
|
|
199
|
+
*/
|
|
200
|
+
exportSessionData(session: AdvancedDebuggingSession, format?: 'json' | 'csv' | 'html'): string;
|
|
201
|
+
/**
|
|
202
|
+
* Extract DOM information from element
|
|
203
|
+
*/
|
|
204
|
+
private extractDOMInfo;
|
|
205
|
+
/**
|
|
206
|
+
* Get computed styles for an element
|
|
207
|
+
*/
|
|
208
|
+
private getComputedStyles;
|
|
209
|
+
/**
|
|
210
|
+
* Get current memory usage
|
|
211
|
+
*/
|
|
212
|
+
private getMemoryUsage;
|
|
213
|
+
/**
|
|
214
|
+
* Get default color for overlay type
|
|
215
|
+
*/
|
|
216
|
+
private getDefaultColor;
|
|
217
|
+
/**
|
|
218
|
+
* Update active inspectors with new snapshot
|
|
219
|
+
*/
|
|
220
|
+
private updateInspectors;
|
|
221
|
+
/**
|
|
222
|
+
* Update inspector trends analysis
|
|
223
|
+
*/
|
|
224
|
+
private updateInspectorTrends;
|
|
225
|
+
/**
|
|
226
|
+
* Analyze debugging session
|
|
227
|
+
*/
|
|
228
|
+
private analyzeSession;
|
|
229
|
+
/**
|
|
230
|
+
* Export session as JSON
|
|
231
|
+
*/
|
|
232
|
+
private exportAsJSON;
|
|
233
|
+
/**
|
|
234
|
+
* Export session as CSV
|
|
235
|
+
*/
|
|
236
|
+
private exportAsCSV;
|
|
237
|
+
/**
|
|
238
|
+
* Export session as HTML report
|
|
239
|
+
*/
|
|
240
|
+
private exportAsHTML;
|
|
241
|
+
/**
|
|
242
|
+
* Get inspector statistics
|
|
243
|
+
*/
|
|
244
|
+
getStatistics(): {
|
|
245
|
+
activeInspectors: number;
|
|
246
|
+
totalSnapshots: number;
|
|
247
|
+
activeOverlays: number;
|
|
248
|
+
sessionActive: boolean;
|
|
249
|
+
memoryUsage: number;
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Configure advanced debugging
|
|
254
|
+
*/
|
|
255
|
+
export declare function configureAdvancedDebugging(config: Partial<AdvancedDebuggingConfig>): void;
|
|
256
|
+
/**
|
|
257
|
+
* Get current advanced debugging configuration
|
|
258
|
+
*/
|
|
259
|
+
export declare function getAdvancedDebuggingConfig(): AdvancedDebuggingConfig;
|
|
260
|
+
declare const advancedInspector: AdvancedValidationInspector;
|
|
261
|
+
/**
|
|
262
|
+
* Advanced Debugging utilities
|
|
263
|
+
*/
|
|
264
|
+
export declare const AdvancedDebuggingUtils: {
|
|
265
|
+
/**
|
|
266
|
+
* Create new inspector
|
|
267
|
+
*/
|
|
268
|
+
createInspector: (target: "component" | "modifier" | "global", targetId?: string, options?: any) => string;
|
|
269
|
+
/**
|
|
270
|
+
* Take component snapshot
|
|
271
|
+
*/
|
|
272
|
+
takeSnapshot: (componentId: string, componentData: any) => string;
|
|
273
|
+
/**
|
|
274
|
+
* Add visual overlay
|
|
275
|
+
*/
|
|
276
|
+
addVisualOverlay: (type: VisualDebuggingOverlay["type"], bounds: any, options?: any) => string;
|
|
277
|
+
/**
|
|
278
|
+
* Start debugging session
|
|
279
|
+
*/
|
|
280
|
+
startSession: (name: string, description?: string) => string;
|
|
281
|
+
/**
|
|
282
|
+
* Stop debugging session
|
|
283
|
+
*/
|
|
284
|
+
stopSession: () => AdvancedDebuggingSession | null;
|
|
285
|
+
/**
|
|
286
|
+
* Get component history
|
|
287
|
+
*/
|
|
288
|
+
getComponentHistory: (componentId: string) => ComponentStateSnapshot[];
|
|
289
|
+
/**
|
|
290
|
+
* Get validation trends
|
|
291
|
+
*/
|
|
292
|
+
getValidationTrends: (componentId?: string) => {
|
|
293
|
+
errorRate: number;
|
|
294
|
+
warningRate: number;
|
|
295
|
+
performanceRegression: boolean;
|
|
296
|
+
memoryTrend: "increasing" | "stable" | "decreasing";
|
|
297
|
+
recommendations: string[];
|
|
298
|
+
};
|
|
299
|
+
/**
|
|
300
|
+
* Export session data
|
|
301
|
+
*/
|
|
302
|
+
exportSessionData: (session: AdvancedDebuggingSession, format?: "json" | "csv" | "html") => string;
|
|
303
|
+
/**
|
|
304
|
+
* Configure debugging
|
|
305
|
+
*/
|
|
306
|
+
configure: typeof configureAdvancedDebugging;
|
|
307
|
+
/**
|
|
308
|
+
* Get configuration
|
|
309
|
+
*/
|
|
310
|
+
getConfig: typeof getAdvancedDebuggingConfig;
|
|
311
|
+
/**
|
|
312
|
+
* Get statistics
|
|
313
|
+
*/
|
|
314
|
+
getStatistics: () => {
|
|
315
|
+
activeInspectors: number;
|
|
316
|
+
totalSnapshots: number;
|
|
317
|
+
activeOverlays: number;
|
|
318
|
+
sessionActive: boolean;
|
|
319
|
+
memoryUsage: number;
|
|
320
|
+
};
|
|
321
|
+
/**
|
|
322
|
+
* Test advanced debugging system
|
|
323
|
+
*/
|
|
324
|
+
test: () => void;
|
|
325
|
+
};
|
|
326
|
+
export { advancedInspector };
|
|
327
|
+
//# sourceMappingURL=advanced-debugging.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"advanced-debugging.d.ts","sourceRoot":"","sources":["../../src/debug/advanced-debugging.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAA;AAG9D,MAAM,MAAM,wBAAwB,GAChC,kBAAkB,GAClB,qBAAqB,GACrB,kBAAkB,GAClB,oBAAoB,GACpB,gBAAgB,GAChB,sBAAsB,GACtB,qBAAqB,CAAA;AAEzB,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,IAAI,EAAE,GAAG,CAAA;IACT,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IAEtC,qBAAqB,EAAE,OAAO,CAAA;IAC9B,yBAAyB,EAAE,OAAO,CAAA;IAClC,uBAAuB,EAAE,OAAO,CAAA;IAChC,mBAAmB,EAAE,OAAO,CAAA;IAG5B,qBAAqB,EAAE,OAAO,CAAA;IAC9B,iBAAiB,EAAE,OAAO,CAAA;IAC1B,gBAAgB,EAAE,OAAO,CAAA;IACzB,cAAc,EAAE,MAAM,CAAA;IAGtB,0BAA0B,EAAE,OAAO,CAAA;IACnC,gBAAgB,EAAE,OAAO,CAAA;IACzB,eAAe,EAAE,OAAO,CAAA;IACxB,mBAAmB,EAAE,OAAO,CAAA;IAG5B,qBAAqB,EAAE,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IACH,OAAO,CAAC,qBAAqB;IAoC7B;;OAEG;IACH,OAAO,CAAC,cAAc;IA8CtB;;OAEG;IACH,OAAO,CAAC,YAAY;IAIpB;;OAEG;IACH,OAAO,CAAC,WAAW;IA4BnB;;OAEG;IACH,OAAO,CAAC,YAAY;IA6CpB;;OAEG;IACH,aAAa;;;;;;;CAcd;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,OAAO,CAAC,uBAAuB,CAAC,GACvC,IAAI,CAEN;AAED;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,uBAAuB,CAEpE;AAGD,QAAA,MAAM,iBAAiB,6BAAoC,CAAA;AAE3D;;GAEG;AACH,eAAO,MAAM,sBAAsB;IACjC;;OAEG;8BAEO,WAAW,GAAG,UAAU,GAAG,QAAQ,aAChC,MAAM,YACP,GAAG;IAGf;;OAEG;gCACyB,MAAM,iBAAiB,GAAG;IAGtD;;OAEG;6BAEK,sBAAsB,CAAC,MAAM,CAAC,UAC5B,GAAG,YACD,GAAG;IAGf;;OAEG;yBACkB,MAAM,gBAAgB,MAAM;IAGjD;;OAEG;;IAGH;;OAEG;uCACgC,MAAM;IAGzC;;OAEG;wCACiC,MAAM;mBA9c7B,MAAM;qBACJ,MAAM;+BACI,OAAO;qBACjB,YAAY,GAAG,QAAQ,GAAG,YAAY;yBAClC,MAAM,EAAE;;IA6c3B;;OAEG;iCAEQ,wBAAwB,WACxB,MAAM,GAAG,KAAK,GAAG,MAAM;IAGlC;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;IAGH;;OAEG;;CAuDJ,CAAA;AAGD,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TachUI Debug System
|
|
3
|
+
*
|
|
4
|
+
* Provides visual debugging tools for component hierarchy and layout
|
|
5
|
+
*/
|
|
6
|
+
export interface DebugConfig {
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
showLabels: boolean;
|
|
9
|
+
showBounds: boolean;
|
|
10
|
+
logComponentTree: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare class DebugManager {
|
|
13
|
+
private config;
|
|
14
|
+
private componentTree;
|
|
15
|
+
/**
|
|
16
|
+
* Enable debug mode with optional configuration
|
|
17
|
+
*/
|
|
18
|
+
enable(options?: Partial<DebugConfig>): void;
|
|
19
|
+
/**
|
|
20
|
+
* Disable debug mode
|
|
21
|
+
*/
|
|
22
|
+
disable(): void;
|
|
23
|
+
/**
|
|
24
|
+
* Check if debug mode is enabled
|
|
25
|
+
*/
|
|
26
|
+
isEnabled(): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Get current debug configuration
|
|
29
|
+
*/
|
|
30
|
+
getConfig(): DebugConfig;
|
|
31
|
+
/**
|
|
32
|
+
* Add debug attributes to DOM element
|
|
33
|
+
*/
|
|
34
|
+
addDebugAttributes(element: HTMLElement, componentType: string, debugLabel?: string): void;
|
|
35
|
+
/**
|
|
36
|
+
* Log component to tree (for hierarchical debugging)
|
|
37
|
+
*/
|
|
38
|
+
logComponent(type: string, label?: string, depth?: number): void;
|
|
39
|
+
/**
|
|
40
|
+
* Print component tree to console
|
|
41
|
+
*/
|
|
42
|
+
printComponentTree(): void;
|
|
43
|
+
/**
|
|
44
|
+
* Get icon for component type
|
|
45
|
+
*/
|
|
46
|
+
private getComponentIcon;
|
|
47
|
+
/**
|
|
48
|
+
* Inject debug CSS styles
|
|
49
|
+
*/
|
|
50
|
+
private injectDebugStyles;
|
|
51
|
+
/**
|
|
52
|
+
* Remove debug CSS styles
|
|
53
|
+
*/
|
|
54
|
+
private removeDebugStyles;
|
|
55
|
+
}
|
|
56
|
+
export declare const debugManager: DebugManager;
|
|
57
|
+
export declare const enableDebug: (options?: Partial<DebugConfig>) => void;
|
|
58
|
+
export declare const disableDebug: () => void;
|
|
59
|
+
export declare const isDebugEnabled: () => boolean;
|
|
60
|
+
export {};
|
|
61
|
+
//# sourceMappingURL=debug.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../src/debug/debug.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,OAAO,CAAA;IAChB,UAAU,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,OAAO,CAAA;IACnB,gBAAgB,EAAE,OAAO,CAAA;CAC1B;AAED,cAAM,YAAY;IAChB,OAAO,CAAC,MAAM,CAKb;IAED,OAAO,CAAC,aAAa,CACjB;IAEJ;;OAEG;IACH,MAAM,CAAC,OAAO,GAAE,OAAO,CAAC,WAAW,CAAM,GAAG,IAAI;IAkBhD;;OAEG;IACH,OAAO,IAAI,IAAI;IAQf;;OAEG;IACH,SAAS,IAAI,OAAO;IAIpB;;OAEG;IACH,SAAS,IAAI,WAAW;IAIxB;;OAEG;IACH,kBAAkB,CAChB,OAAO,EAAE,WAAW,EACpB,aAAa,EAAE,MAAM,EACrB,UAAU,CAAC,EAAE,MAAM,GAClB,IAAI;IAsBP;;OAEG;IACH,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,GAAE,MAAU,GAAG,IAAI;IAUnE;;OAEG;IACH,kBAAkB,IAAI,IAAI;IAe1B;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAiBxB;;OAEG;IACH,OAAO,CAAC,iBAAiB;IA6DzB;;OAEG;IACH,OAAO,CAAC,iBAAiB;CAe1B;AAGD,eAAO,MAAM,YAAY,cAAqB,CAAA;AAG9C,eAAO,MAAM,WAAW,GAAI,UAAU,OAAO,CAAC,WAAW,CAAC,SAC5B,CAAA;AAC9B,eAAO,MAAM,YAAY,YAA+B,CAAA;AACxD,eAAO,MAAM,cAAc,eAAiC,CAAA"}
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Developer Experience Integration - Phase 1D
|
|
3
|
+
*
|
|
4
|
+
* Enhanced error message templates, intelligent fix suggestions,
|
|
5
|
+
* and comprehensive developer guidance system.
|
|
6
|
+
*/
|
|
7
|
+
export type ValidationErrorCategory = 'component' | 'modifier' | 'runtime' | 'reactive' | 'validation' | 'component-construction' | 'modifier-usage' | 'performance';
|
|
8
|
+
export type ValidationErrorSeverity = 'error' | 'warning' | 'info' | 'critical';
|
|
9
|
+
export interface EnhancedValidationError {
|
|
10
|
+
message: string;
|
|
11
|
+
context: {
|
|
12
|
+
component: string;
|
|
13
|
+
property?: string;
|
|
14
|
+
suggestion?: string;
|
|
15
|
+
documentation?: string;
|
|
16
|
+
package?: string;
|
|
17
|
+
};
|
|
18
|
+
getFormattedMessage(): string;
|
|
19
|
+
}
|
|
20
|
+
export declare function createEnhancedValidationError(message: string, context: {
|
|
21
|
+
component: string;
|
|
22
|
+
property?: string;
|
|
23
|
+
suggestion?: string;
|
|
24
|
+
documentation?: string;
|
|
25
|
+
package?: string;
|
|
26
|
+
}): EnhancedValidationError;
|
|
27
|
+
/**
|
|
28
|
+
* Intelligent fix suggestion with automated repair capability
|
|
29
|
+
*/
|
|
30
|
+
export interface IntelligentFixSuggestion {
|
|
31
|
+
id: string;
|
|
32
|
+
title: string;
|
|
33
|
+
description: string;
|
|
34
|
+
difficulty: 'easy' | 'medium' | 'hard';
|
|
35
|
+
confidence: number;
|
|
36
|
+
category: 'syntax' | 'logic' | 'performance' | 'accessibility' | 'best-practice';
|
|
37
|
+
before: string;
|
|
38
|
+
after: string;
|
|
39
|
+
canAutoFix: boolean;
|
|
40
|
+
autoFix?: () => string;
|
|
41
|
+
learnMore?: {
|
|
42
|
+
documentation: string;
|
|
43
|
+
examples: string[];
|
|
44
|
+
videoTutorial?: string;
|
|
45
|
+
};
|
|
46
|
+
relatedFixes: string[];
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Enhanced error message template with rich formatting
|
|
50
|
+
*/
|
|
51
|
+
export interface DeveloperErrorMessageTemplate {
|
|
52
|
+
id: string;
|
|
53
|
+
title: string;
|
|
54
|
+
description: string;
|
|
55
|
+
severity: ValidationErrorSeverity;
|
|
56
|
+
category: ValidationErrorCategory;
|
|
57
|
+
emoji: string;
|
|
58
|
+
color: string;
|
|
59
|
+
quickFix: string;
|
|
60
|
+
explanation: string;
|
|
61
|
+
prevention: string;
|
|
62
|
+
suggestions: IntelligentFixSuggestion[];
|
|
63
|
+
examples: {
|
|
64
|
+
wrong: CodeExample[];
|
|
65
|
+
correct: CodeExample[];
|
|
66
|
+
};
|
|
67
|
+
documentation: {
|
|
68
|
+
primary: string;
|
|
69
|
+
related: string[];
|
|
70
|
+
apiReference?: string;
|
|
71
|
+
};
|
|
72
|
+
context: {
|
|
73
|
+
component?: string;
|
|
74
|
+
modifier?: string;
|
|
75
|
+
package?: string;
|
|
76
|
+
commonCause: string[];
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Code example with syntax highlighting metadata
|
|
81
|
+
*/
|
|
82
|
+
export interface CodeExample {
|
|
83
|
+
code: string;
|
|
84
|
+
language: 'typescript' | 'javascript' | 'tsx' | 'jsx';
|
|
85
|
+
title: string;
|
|
86
|
+
description?: string;
|
|
87
|
+
highlights?: {
|
|
88
|
+
line: number;
|
|
89
|
+
type: 'error' | 'warning' | 'info' | 'success';
|
|
90
|
+
message: string;
|
|
91
|
+
}[];
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Developer experience configuration
|
|
95
|
+
*/
|
|
96
|
+
export interface DeveloperExperienceConfig {
|
|
97
|
+
verbosity: 'minimal' | 'standard' | 'detailed' | 'comprehensive';
|
|
98
|
+
showEmojis: boolean;
|
|
99
|
+
showColors: boolean;
|
|
100
|
+
showCodeExamples: boolean;
|
|
101
|
+
showDocumentationLinks: boolean;
|
|
102
|
+
enableAutoFix: boolean;
|
|
103
|
+
suggestionCount: number;
|
|
104
|
+
minConfidenceScore: number;
|
|
105
|
+
enableInlineHelp: boolean;
|
|
106
|
+
enableHoverInfo: boolean;
|
|
107
|
+
enableQuickActions: boolean;
|
|
108
|
+
showLearningTips: boolean;
|
|
109
|
+
trackProgress: boolean;
|
|
110
|
+
personalization: boolean;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Comprehensive error message templates database
|
|
114
|
+
*/
|
|
115
|
+
export declare const errorMessageTemplates: Record<string, DeveloperErrorMessageTemplate>;
|
|
116
|
+
/**
|
|
117
|
+
* Intelligent fix suggestion engine
|
|
118
|
+
*/
|
|
119
|
+
export declare class FixSuggestionEngine {
|
|
120
|
+
private suggestionDatabase;
|
|
121
|
+
private usageTracker;
|
|
122
|
+
constructor();
|
|
123
|
+
/**
|
|
124
|
+
* Get intelligent fix suggestions for a given error
|
|
125
|
+
*/
|
|
126
|
+
getSuggestions(errorType: string, _context: {
|
|
127
|
+
component?: string;
|
|
128
|
+
modifier?: string;
|
|
129
|
+
code?: string;
|
|
130
|
+
severity?: ValidationErrorSeverity;
|
|
131
|
+
}): IntelligentFixSuggestion[];
|
|
132
|
+
/**
|
|
133
|
+
* Apply automatic fix
|
|
134
|
+
*/
|
|
135
|
+
applyAutoFix(suggestionId: string, _code: string): string | null;
|
|
136
|
+
/**
|
|
137
|
+
* Track suggestion usage for improvement
|
|
138
|
+
*/
|
|
139
|
+
private trackSuggestionUsage;
|
|
140
|
+
/**
|
|
141
|
+
* Initialize suggestion database with common fixes
|
|
142
|
+
*/
|
|
143
|
+
private initializeSuggestionDatabase;
|
|
144
|
+
/**
|
|
145
|
+
* Get suggestion statistics
|
|
146
|
+
*/
|
|
147
|
+
getStatistics(): {
|
|
148
|
+
totalSuggestions: number;
|
|
149
|
+
totalUsages: number;
|
|
150
|
+
topSuggestions: [string, number][];
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Enhanced error message formatter with rich templates
|
|
155
|
+
*/
|
|
156
|
+
export declare class EnhancedErrorFormatter {
|
|
157
|
+
private fixEngine;
|
|
158
|
+
/**
|
|
159
|
+
* Format error with enhanced template
|
|
160
|
+
*/
|
|
161
|
+
formatError(error: EnhancedValidationError, templateId?: string): FormattedErrorMessage;
|
|
162
|
+
/**
|
|
163
|
+
* Find the best template for an error
|
|
164
|
+
*/
|
|
165
|
+
private findBestTemplate;
|
|
166
|
+
/**
|
|
167
|
+
* Render formatted message with rich content
|
|
168
|
+
*/
|
|
169
|
+
private renderFormattedMessage;
|
|
170
|
+
/**
|
|
171
|
+
* Format basic error without template
|
|
172
|
+
*/
|
|
173
|
+
private formatBasicError;
|
|
174
|
+
/**
|
|
175
|
+
* Generate quick actions for IDE integration
|
|
176
|
+
*/
|
|
177
|
+
private generateQuickActions;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Formatted error message with rich content
|
|
181
|
+
*/
|
|
182
|
+
export interface FormattedErrorMessage {
|
|
183
|
+
id: string;
|
|
184
|
+
template: DeveloperErrorMessageTemplate | null;
|
|
185
|
+
error: EnhancedValidationError;
|
|
186
|
+
suggestions: IntelligentFixSuggestion[];
|
|
187
|
+
formatted: string;
|
|
188
|
+
interactive: {
|
|
189
|
+
canAutoFix: boolean;
|
|
190
|
+
quickActions: QuickAction[];
|
|
191
|
+
learnMore: {
|
|
192
|
+
primary: string;
|
|
193
|
+
related: string[];
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Quick action for IDE integration
|
|
199
|
+
*/
|
|
200
|
+
export interface QuickAction {
|
|
201
|
+
id: string;
|
|
202
|
+
title: string;
|
|
203
|
+
description: string;
|
|
204
|
+
command: string;
|
|
205
|
+
arguments: any[];
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Configure developer experience
|
|
209
|
+
*/
|
|
210
|
+
export declare function configureDeveloperExperience(config: Partial<DeveloperExperienceConfig>): void;
|
|
211
|
+
/**
|
|
212
|
+
* Get current developer experience configuration
|
|
213
|
+
*/
|
|
214
|
+
export declare function getDeveloperExperienceConfig(): DeveloperExperienceConfig;
|
|
215
|
+
declare const enhancedFormatter: EnhancedErrorFormatter;
|
|
216
|
+
declare const fixEngine: FixSuggestionEngine;
|
|
217
|
+
/**
|
|
218
|
+
* Developer Experience utilities
|
|
219
|
+
*/
|
|
220
|
+
export declare const DeveloperExperienceUtils: {
|
|
221
|
+
/**
|
|
222
|
+
* Format error with enhanced template
|
|
223
|
+
*/
|
|
224
|
+
formatError: (error: EnhancedValidationError, templateId?: string) => FormattedErrorMessage;
|
|
225
|
+
/**
|
|
226
|
+
* Get fix suggestions
|
|
227
|
+
*/
|
|
228
|
+
getSuggestions: (errorType: string, context: any) => IntelligentFixSuggestion[];
|
|
229
|
+
/**
|
|
230
|
+
* Apply automatic fix
|
|
231
|
+
*/
|
|
232
|
+
applyAutoFix: (suggestionId: string, code: string) => string | null;
|
|
233
|
+
/**
|
|
234
|
+
* Get available error templates
|
|
235
|
+
*/
|
|
236
|
+
getErrorTemplates: () => Record<string, DeveloperErrorMessageTemplate>;
|
|
237
|
+
/**
|
|
238
|
+
* Configure experience
|
|
239
|
+
*/
|
|
240
|
+
configure: typeof configureDeveloperExperience;
|
|
241
|
+
/**
|
|
242
|
+
* Get statistics
|
|
243
|
+
*/
|
|
244
|
+
getStatistics: () => {
|
|
245
|
+
formatter: {
|
|
246
|
+
templatesAvailable: number;
|
|
247
|
+
};
|
|
248
|
+
fixEngine: {
|
|
249
|
+
totalSuggestions: number;
|
|
250
|
+
totalUsages: number;
|
|
251
|
+
topSuggestions: [string, number][];
|
|
252
|
+
};
|
|
253
|
+
config: DeveloperExperienceConfig;
|
|
254
|
+
};
|
|
255
|
+
/**
|
|
256
|
+
* Test developer experience system
|
|
257
|
+
*/
|
|
258
|
+
test: () => void;
|
|
259
|
+
};
|
|
260
|
+
export { enhancedFormatter, fixEngine };
|
|
261
|
+
//# sourceMappingURL=developer-experience.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"developer-experience.d.ts","sourceRoot":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