@tachui/core 0.7.1-alpha → 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/README.md +2 -2
- package/dist/bundles/common.d.ts +1 -1
- package/dist/bundles/common.d.ts.map +1 -1
- package/dist/bundles/minimal.d.ts +2 -16
- package/dist/bundles/minimal.d.ts.map +1 -1
- package/dist/bundles/production-minimal.d.ts +2 -16
- package/dist/bundles/production-minimal.d.ts.map +1 -1
- package/dist/common.js +403 -827
- package/dist/compiler/advanced-parser.d.ts.map +1 -1
- package/dist/compiler/index.js +14 -8
- package/dist/component-XAzF1xqs.js +487 -0
- package/dist/component-base-x2XmHFjy.js +255 -0
- package/dist/components/index.d.ts +4 -38
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +7 -4167
- package/dist/components/wrapper.d.ts +5 -152
- package/dist/components/wrapper.d.ts.map +1 -1
- package/dist/concatenated-component-ByPl3_FF.js +2933 -0
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/layout.d.ts +47 -4
- package/dist/constants/layout.d.ts.map +1 -1
- package/dist/constants/layout.js +84 -0
- package/dist/css-classes/index.js +176 -0
- package/dist/{dom-bridge-Cx-s6Ihx.js → dom-bridge-CAa1N2zX.js} +28 -28
- package/dist/{effect-CytAc9em.js → effect-B9Knft0b.js} +3 -3
- package/dist/essential.js +395 -825
- package/dist/index-DCPJFUm9.js +1407 -0
- package/dist/index-DIvMCJQO.js +268 -0
- package/dist/index-vdsiw6gQ.js +777 -0
- package/dist/index.d.ts +9 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +395 -825
- package/dist/minimal-prod.js +101 -155
- package/dist/minimal.js +104 -170
- package/dist/modifiers/background.d.ts +41 -11
- package/dist/modifiers/background.d.ts.map +1 -1
- package/dist/modifiers/base.d.ts +6 -33
- package/dist/modifiers/base.d.ts.map +1 -1
- package/dist/modifiers/base.js +487 -0
- package/dist/modifiers/builder.d.ts +103 -195
- package/dist/modifiers/builder.d.ts.map +1 -1
- package/dist/modifiers/builder.js +9 -0
- package/dist/modifiers/core.d.ts +9 -401
- package/dist/modifiers/core.d.ts.map +1 -1
- package/dist/modifiers/{utils.d.ts → factories.d.ts} +18 -5
- package/dist/modifiers/factories.d.ts.map +1 -0
- package/dist/modifiers/index.d.ts +8 -52
- package/dist/modifiers/index.d.ts.map +1 -1
- package/dist/modifiers/index.js +38 -0
- package/dist/modifiers/presets.d.ts +368 -0
- package/dist/modifiers/presets.d.ts.map +1 -0
- package/dist/modifiers/registry.js +10 -0
- package/dist/modifiers/types.d.ts +39 -211
- package/dist/modifiers/types.d.ts.map +1 -1
- package/dist/modifiers/types.js +4 -0
- package/dist/performance-optimizer-stub-CtfXUwl4.js +38 -0
- package/dist/plugins/index.d.ts +5 -6
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +147 -297
- package/dist/plugins/simplified-index.d.ts +5 -6
- package/dist/plugins/simplified-index.d.ts.map +1 -1
- package/dist/production-minimal-BY_gMc-l.js +2532 -0
- package/dist/reactive/index.js +96 -95
- package/dist/reactive/types.js +4 -0
- package/dist/runtime/dom-bridge.js +5 -5
- package/dist/runtime/element-override.d.ts.map +1 -1
- package/dist/runtime/index.d.ts +0 -7
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/renderer.d.ts.map +1 -1
- package/dist/runtime/renderer.js +7 -8
- package/dist/runtime/semantic-role-manager.d.ts.map +1 -1
- package/dist/runtime/types.js +1 -0
- package/dist/{scheduler-7SvC3a21.js → scheduler-BKeqwrYE.js} +130 -130
- package/dist/validation/build-time-stub.d.ts +33 -0
- package/dist/validation/build-time-stub.d.ts.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/index.d.ts +23 -78
- package/dist/validation/index.d.ts.map +1 -1
- package/dist/validation/index.js +609 -6470
- package/dist/validation/lifecycle-validation.d.ts.map +1 -1
- package/dist/validation/performance-optimizer-stub.d.ts +50 -0
- package/dist/validation/performance-optimizer-stub.d.ts.map +1 -0
- package/dist/validation/plugin-registration.d.ts +5 -1
- package/dist/validation/plugin-registration.d.ts.map +1 -1
- package/dist/validation/production-bypass-core.d.ts +69 -0
- package/dist/validation/production-bypass-core.d.ts.map +1 -0
- package/package.json +41 -5
- package/dist/ScrollView-h-6wYMAm.js +0 -515
- package/dist/Spacer-BbteDQ9I.js +0 -5337
- package/dist/binding-CmdpowkI.js +0 -2276
- package/dist/components/BasicInput.d.ts +0 -116
- package/dist/components/BasicInput.d.ts.map +0 -1
- package/dist/components/Button.d.ts +0 -252
- package/dist/components/Button.d.ts.map +0 -1
- package/dist/components/Divider.d.ts +0 -141
- package/dist/components/Divider.d.ts.map +0 -1
- package/dist/components/EnhancedLink.d.ts +0 -365
- package/dist/components/EnhancedLink.d.ts.map +0 -1
- package/dist/components/Form.d.ts +0 -141
- package/dist/components/Form.d.ts.map +0 -1
- package/dist/components/Grid.d.ts +0 -698
- package/dist/components/Grid.d.ts.map +0 -1
- package/dist/components/GridResponsive.d.ts +0 -214
- package/dist/components/GridResponsive.d.ts.map +0 -1
- package/dist/components/Image.d.ts +0 -162
- package/dist/components/Image.d.ts.map +0 -1
- package/dist/components/List.d.ts +0 -287
- package/dist/components/List.d.ts.map +0 -1
- package/dist/components/Menu.d.ts +0 -159
- package/dist/components/Menu.d.ts.map +0 -1
- package/dist/components/Picker.d.ts +0 -153
- package/dist/components/Picker.d.ts.map +0 -1
- package/dist/components/ScrollView.d.ts +0 -222
- package/dist/components/ScrollView.d.ts.map +0 -1
- package/dist/components/Section.d.ts +0 -153
- package/dist/components/Section.d.ts.map +0 -1
- package/dist/components/Show.d.ts +0 -64
- package/dist/components/Show.d.ts.map +0 -1
- package/dist/components/Spacer.d.ts +0 -35
- package/dist/components/Spacer.d.ts.map +0 -1
- package/dist/components/Text.d.ts +0 -242
- package/dist/components/Text.d.ts.map +0 -1
- package/dist/components/Toggle.d.ts +0 -207
- package/dist/components/Toggle.d.ts.map +0 -1
- package/dist/concatenated-component-DPcl2TEO.js +0 -6779
- package/dist/context--zQFIImS.js +0 -283
- package/dist/debug/index.d.ts +0 -61
- package/dist/debug/index.d.ts.map +0 -1
- package/dist/debug.js +0 -178
- package/dist/developer-experience/enhanced-errors.d.ts +0 -128
- package/dist/developer-experience/enhanced-errors.d.ts.map +0 -1
- package/dist/developer-experience/enhanced-types.d.ts +0 -281
- package/dist/developer-experience/enhanced-types.d.ts.map +0 -1
- package/dist/developer-experience/index.d.ts +0 -44
- package/dist/developer-experience/index.d.ts.map +0 -1
- package/dist/index-Nfi2SBQh.js +0 -3268
- package/dist/modifiers/attributes.d.ts +0 -203
- package/dist/modifiers/attributes.d.ts.map +0 -1
- package/dist/modifiers/backdrop.d.ts +0 -59
- package/dist/modifiers/backdrop.d.ts.map +0 -1
- package/dist/modifiers/border.d.ts +0 -217
- package/dist/modifiers/border.d.ts.map +0 -1
- package/dist/modifiers/effects.d.ts +0 -159
- package/dist/modifiers/effects.d.ts.map +0 -1
- package/dist/modifiers/elements.d.ts +0 -240
- package/dist/modifiers/elements.d.ts.map +0 -1
- package/dist/modifiers/filters.d.ts +0 -275
- package/dist/modifiers/filters.d.ts.map +0 -1
- package/dist/modifiers/flexbox.d.ts +0 -82
- package/dist/modifiers/flexbox.d.ts.map +0 -1
- package/dist/modifiers/font.d.ts +0 -71
- package/dist/modifiers/font.d.ts.map +0 -1
- package/dist/modifiers/grid.d.ts +0 -92
- package/dist/modifiers/grid.d.ts.map +0 -1
- package/dist/modifiers/margin.d.ts +0 -128
- package/dist/modifiers/margin.d.ts.map +0 -1
- package/dist/modifiers/padding.d.ts +0 -204
- package/dist/modifiers/padding.d.ts.map +0 -1
- package/dist/modifiers/responsive/advanced-utilities.d.ts +0 -118
- package/dist/modifiers/responsive/advanced-utilities.d.ts.map +0 -1
- package/dist/modifiers/responsive/breakpoints.d.ts +0 -81
- package/dist/modifiers/responsive/breakpoints.d.ts.map +0 -1
- package/dist/modifiers/responsive/css-generator.d.ts +0 -100
- package/dist/modifiers/responsive/css-generator.d.ts.map +0 -1
- package/dist/modifiers/responsive/dev-tools.d.ts +0 -107
- package/dist/modifiers/responsive/dev-tools.d.ts.map +0 -1
- package/dist/modifiers/responsive/index.d.ts +0 -29
- package/dist/modifiers/responsive/index.d.ts.map +0 -1
- package/dist/modifiers/responsive/layout-patterns.d.ts +0 -230
- package/dist/modifiers/responsive/layout-patterns.d.ts.map +0 -1
- package/dist/modifiers/responsive/performance.d.ts +0 -130
- package/dist/modifiers/responsive/performance.d.ts.map +0 -1
- package/dist/modifiers/responsive/responsive-builder.d.ts +0 -133
- package/dist/modifiers/responsive/responsive-builder.d.ts.map +0 -1
- package/dist/modifiers/responsive/responsive-modifier.d.ts +0 -123
- package/dist/modifiers/responsive/responsive-modifier.d.ts.map +0 -1
- package/dist/modifiers/responsive/types.d.ts +0 -183
- package/dist/modifiers/responsive/types.d.ts.map +0 -1
- package/dist/modifiers/responsive/utilities.d.ts +0 -149
- package/dist/modifiers/responsive/utilities.d.ts.map +0 -1
- package/dist/modifiers/scroll.d.ts +0 -143
- package/dist/modifiers/scroll.d.ts.map +0 -1
- package/dist/modifiers/shadows.d.ts +0 -114
- package/dist/modifiers/shadows.d.ts.map +0 -1
- package/dist/modifiers/size.d.ts +0 -113
- package/dist/modifiers/size.d.ts.map +0 -1
- package/dist/modifiers/text.d.ts +0 -147
- package/dist/modifiers/text.d.ts.map +0 -1
- package/dist/modifiers/transformations.d.ts +0 -329
- package/dist/modifiers/transformations.d.ts.map +0 -1
- package/dist/modifiers/transitions.d.ts +0 -98
- package/dist/modifiers/transitions.d.ts.map +0 -1
- package/dist/modifiers/typography.d.ts +0 -192
- package/dist/modifiers/typography.d.ts.map +0 -1
- package/dist/modifiers/utility.d.ts +0 -69
- package/dist/modifiers/utility.d.ts.map +0 -1
- package/dist/modifiers/utils.d.ts.map +0 -1
- package/dist/plugins/simplified-error-handler.d.ts +0 -83
- package/dist/plugins/simplified-error-handler.d.ts.map +0 -1
- package/dist/runtime/dev-tools.d.ts +0 -240
- package/dist/runtime/dev-tools.d.ts.map +0 -1
- package/dist/runtime/development-warnings.d.ts +0 -42
- package/dist/runtime/development-warnings.d.ts.map +0 -1
- package/dist/runtime/error-boundary.d.ts +0 -302
- package/dist/runtime/error-boundary.d.ts.map +0 -1
- package/dist/runtime/error-recovery.d.ts +0 -267
- package/dist/runtime/error-recovery.d.ts.map +0 -1
- package/dist/runtime/error-reporting.d.ts +0 -287
- package/dist/runtime/error-reporting.d.ts.map +0 -1
- package/dist/runtime/error-utils.d.ts +0 -204
- package/dist/runtime/error-utils.d.ts.map +0 -1
- package/dist/runtime/performance.d.ts +0 -217
- package/dist/runtime/performance.d.ts.map +0 -1
- package/dist/sui-compat.d.ts +0 -110
- package/dist/sui-compat.d.ts.map +0 -1
- package/dist/validation/advanced-debugging.d.ts +0 -319
- package/dist/validation/advanced-debugging.d.ts.map +0 -1
- package/dist/validation/build-time/detection.d.ts +0 -32
- package/dist/validation/build-time/detection.d.ts.map +0 -1
- package/dist/validation/build-time/index.d.ts +0 -84
- package/dist/validation/build-time/index.d.ts.map +0 -1
- package/dist/validation/build-time/plugins.d.ts +0 -75
- package/dist/validation/build-time/plugins.d.ts.map +0 -1
- package/dist/validation/build-time/rules.d.ts +0 -73
- package/dist/validation/build-time/rules.d.ts.map +0 -1
- package/dist/validation/build-time/transformer.d.ts +0 -23
- package/dist/validation/build-time/transformer.d.ts.map +0 -1
- package/dist/validation/build-time/types.d.ts +0 -212
- package/dist/validation/build-time/types.d.ts.map +0 -1
- package/dist/validation/comprehensive.d.ts +0 -160
- package/dist/validation/comprehensive.d.ts.map +0 -1
- package/dist/validation/debug-tools.d.ts +0 -251
- package/dist/validation/debug-tools.d.ts.map +0 -1
- package/dist/validation/developer-experience.d.ts +0 -243
- package/dist/validation/developer-experience.d.ts.map +0 -1
- package/dist/validation/documentation-integration.d.ts +0 -269
- package/dist/validation/documentation-integration.d.ts.map +0 -1
- package/dist/validation/enhanced-runtime.d.ts +0 -279
- package/dist/validation/enhanced-runtime.d.ts.map +0 -1
- package/dist/validation/error-reporting.d.ts +0 -186
- package/dist/validation/error-reporting.d.ts.map +0 -1
- package/dist/validation/ide-integration.d.ts +0 -328
- package/dist/validation/ide-integration.d.ts.map +0 -1
- package/dist/validation/performance-optimizer.d.ts +0 -218
- package/dist/validation/performance-optimizer.d.ts.map +0 -1
- package/dist/validation/production-bypass.d.ts +0 -175
- package/dist/validation/production-bypass.d.ts.map +0 -1
- package/dist/validation/simple.d.ts +0 -111
- package/dist/validation/simple.d.ts.map +0 -1
- package/dist/viewport/adapters/web-adapter.d.ts +0 -227
- package/dist/viewport/adapters/web-adapter.d.ts.map +0 -1
- package/dist/viewport/components.d.ts +0 -131
- package/dist/viewport/components.d.ts.map +0 -1
- package/dist/viewport/environment.d.ts +0 -75
- package/dist/viewport/environment.d.ts.map +0 -1
- package/dist/viewport/index.d.ts +0 -138
- package/dist/viewport/index.d.ts.map +0 -1
- package/dist/viewport/index.js +0 -2085
- package/dist/viewport/platform-detection.d.ts +0 -59
- package/dist/viewport/platform-detection.d.ts.map +0 -1
- package/dist/viewport/types.d.ts +0 -301
- package/dist/viewport/types.d.ts.map +0 -1
- package/dist/viewport/viewport-manager.d.ts +0 -118
- package/dist/viewport/viewport-manager.d.ts.map +0 -1
|
@@ -1,287 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Error Reporting and Logging System (Phase 3.2.3)
|
|
3
|
-
*
|
|
4
|
-
* Advanced error reporting, logging, and analytics for TachUI.
|
|
5
|
-
* Provides structured logging, error aggregation, and reporting pipelines.
|
|
6
|
-
*/
|
|
7
|
-
import { type ErrorCategory, type ErrorSeverity, type TachUIError } from './error-boundary';
|
|
8
|
-
/**
|
|
9
|
-
* Log levels
|
|
10
|
-
*/
|
|
11
|
-
export type LogLevel = 'debug' | 'info' | 'warn' | 'error' | 'fatal';
|
|
12
|
-
/**
|
|
13
|
-
* Log entry structure
|
|
14
|
-
*/
|
|
15
|
-
export interface LogEntry {
|
|
16
|
-
id: string;
|
|
17
|
-
timestamp: number;
|
|
18
|
-
level: LogLevel;
|
|
19
|
-
message: string;
|
|
20
|
-
category?: string;
|
|
21
|
-
componentId?: string;
|
|
22
|
-
componentName?: string;
|
|
23
|
-
context?: Record<string, any>;
|
|
24
|
-
stack?: string;
|
|
25
|
-
userAgent?: string;
|
|
26
|
-
url?: string;
|
|
27
|
-
userId?: string;
|
|
28
|
-
sessionId?: string;
|
|
29
|
-
tags?: string[];
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Error aggregation data
|
|
33
|
-
*/
|
|
34
|
-
export interface ErrorAggregation {
|
|
35
|
-
id: string;
|
|
36
|
-
message: string;
|
|
37
|
-
category: ErrorCategory;
|
|
38
|
-
severity: ErrorSeverity;
|
|
39
|
-
count: number;
|
|
40
|
-
firstSeen: number;
|
|
41
|
-
lastSeen: number;
|
|
42
|
-
affectedComponents: string[];
|
|
43
|
-
samples: TachUIError[];
|
|
44
|
-
fingerprint: string;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Logger interface
|
|
48
|
-
*/
|
|
49
|
-
export interface Logger {
|
|
50
|
-
debug(message: string, context?: Record<string, any>): void;
|
|
51
|
-
info(message: string, context?: Record<string, any>): void;
|
|
52
|
-
warn(message: string, context?: Record<string, any>): void;
|
|
53
|
-
error(message: string, context?: Record<string, any>): void;
|
|
54
|
-
fatal(message: string, context?: Record<string, any>): void;
|
|
55
|
-
log(level: LogLevel, message: string, context?: Record<string, any>): void;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Report destination interface
|
|
59
|
-
*/
|
|
60
|
-
export interface ReportDestination {
|
|
61
|
-
name: string;
|
|
62
|
-
send(data: LogEntry[] | ErrorAggregation[]): Promise<void>;
|
|
63
|
-
isEnabled(): boolean;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Reporting configuration
|
|
67
|
-
*/
|
|
68
|
-
export interface ReportingConfig {
|
|
69
|
-
enabled: boolean;
|
|
70
|
-
logLevel: LogLevel;
|
|
71
|
-
batchSize: number;
|
|
72
|
-
batchTimeout: number;
|
|
73
|
-
aggregationWindow: number;
|
|
74
|
-
maxRetries: number;
|
|
75
|
-
destinations: ReportDestination[];
|
|
76
|
-
enableContextCapture: boolean;
|
|
77
|
-
enableStackTrace: boolean;
|
|
78
|
-
enableUserTracking: boolean;
|
|
79
|
-
enableSessionTracking: boolean;
|
|
80
|
-
sensitiveKeys: string[];
|
|
81
|
-
enableCompression: boolean;
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Structured logger implementation
|
|
85
|
-
*/
|
|
86
|
-
export declare class StructuredLogger implements Logger {
|
|
87
|
-
private entries;
|
|
88
|
-
private config;
|
|
89
|
-
private sessionId;
|
|
90
|
-
private userId?;
|
|
91
|
-
private entriesSignal;
|
|
92
|
-
private setEntries;
|
|
93
|
-
constructor(config?: Partial<ReportingConfig>);
|
|
94
|
-
/**
|
|
95
|
-
* Debug level logging
|
|
96
|
-
*/
|
|
97
|
-
debug(message: string, context?: Record<string, any>): void;
|
|
98
|
-
/**
|
|
99
|
-
* Info level logging
|
|
100
|
-
*/
|
|
101
|
-
info(message: string, context?: Record<string, any>): void;
|
|
102
|
-
/**
|
|
103
|
-
* Warning level logging
|
|
104
|
-
*/
|
|
105
|
-
warn(message: string, context?: Record<string, any>): void;
|
|
106
|
-
/**
|
|
107
|
-
* Error level logging
|
|
108
|
-
*/
|
|
109
|
-
error(message: string, context?: Record<string, any>): void;
|
|
110
|
-
/**
|
|
111
|
-
* Fatal level logging
|
|
112
|
-
*/
|
|
113
|
-
fatal(message: string, context?: Record<string, any>): void;
|
|
114
|
-
/**
|
|
115
|
-
* Generic logging method
|
|
116
|
-
*/
|
|
117
|
-
log(level: LogLevel, message: string, context?: Record<string, any>): void;
|
|
118
|
-
/**
|
|
119
|
-
* Check if should log at given level
|
|
120
|
-
*/
|
|
121
|
-
private shouldLog;
|
|
122
|
-
/**
|
|
123
|
-
* Add log entry
|
|
124
|
-
*/
|
|
125
|
-
private addEntry;
|
|
126
|
-
/**
|
|
127
|
-
* Sanitize context to remove sensitive data
|
|
128
|
-
*/
|
|
129
|
-
private sanitizeContext;
|
|
130
|
-
/**
|
|
131
|
-
* Setup batch processing
|
|
132
|
-
*/
|
|
133
|
-
private setupBatchProcessing;
|
|
134
|
-
/**
|
|
135
|
-
* Flush current batch of log entries
|
|
136
|
-
*/
|
|
137
|
-
private flushBatch;
|
|
138
|
-
/**
|
|
139
|
-
* Send data with retry logic
|
|
140
|
-
*/
|
|
141
|
-
private sendWithRetry;
|
|
142
|
-
/**
|
|
143
|
-
* Sleep for specified duration
|
|
144
|
-
*/
|
|
145
|
-
private sleep;
|
|
146
|
-
/**
|
|
147
|
-
* Generate unique ID
|
|
148
|
-
*/
|
|
149
|
-
private generateId;
|
|
150
|
-
/**
|
|
151
|
-
* Generate session ID
|
|
152
|
-
*/
|
|
153
|
-
private generateSessionId;
|
|
154
|
-
/**
|
|
155
|
-
* Set user ID for tracking
|
|
156
|
-
*/
|
|
157
|
-
setUserId(userId: string): void;
|
|
158
|
-
/**
|
|
159
|
-
* Get log entries
|
|
160
|
-
*/
|
|
161
|
-
getEntries(): LogEntry[];
|
|
162
|
-
/**
|
|
163
|
-
* Get entries signal
|
|
164
|
-
*/
|
|
165
|
-
getEntriesSignal(): () => LogEntry[];
|
|
166
|
-
/**
|
|
167
|
-
* Add destination
|
|
168
|
-
*/
|
|
169
|
-
addDestination(destination: ReportDestination): void;
|
|
170
|
-
/**
|
|
171
|
-
* Remove destination
|
|
172
|
-
*/
|
|
173
|
-
removeDestination(name: string): void;
|
|
174
|
-
/**
|
|
175
|
-
* Clear all log entries
|
|
176
|
-
*/
|
|
177
|
-
clear(): void;
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* Error aggregator
|
|
181
|
-
*/
|
|
182
|
-
export declare class ErrorAggregator {
|
|
183
|
-
private aggregations;
|
|
184
|
-
private config;
|
|
185
|
-
private aggregationsSignal;
|
|
186
|
-
private setAggregations;
|
|
187
|
-
constructor(config?: Partial<ReportingConfig>);
|
|
188
|
-
/**
|
|
189
|
-
* Aggregate error
|
|
190
|
-
*/
|
|
191
|
-
aggregateError(error: TachUIError): void;
|
|
192
|
-
/**
|
|
193
|
-
* Generate error fingerprint for grouping
|
|
194
|
-
*/
|
|
195
|
-
private generateFingerprint;
|
|
196
|
-
/**
|
|
197
|
-
* Setup cleanup of old aggregations
|
|
198
|
-
*/
|
|
199
|
-
private setupCleanup;
|
|
200
|
-
/**
|
|
201
|
-
* Cleanup old aggregations
|
|
202
|
-
*/
|
|
203
|
-
private cleanupOldAggregations;
|
|
204
|
-
/**
|
|
205
|
-
* Get aggregations
|
|
206
|
-
*/
|
|
207
|
-
getAggregations(): ErrorAggregation[];
|
|
208
|
-
/**
|
|
209
|
-
* Get aggregations signal
|
|
210
|
-
*/
|
|
211
|
-
getAggregationsSignal(): () => ErrorAggregation[];
|
|
212
|
-
/**
|
|
213
|
-
* Get top errors by count
|
|
214
|
-
*/
|
|
215
|
-
getTopErrors(limit?: number): ErrorAggregation[];
|
|
216
|
-
/**
|
|
217
|
-
* Clear aggregations
|
|
218
|
-
*/
|
|
219
|
-
clear(): void;
|
|
220
|
-
}
|
|
221
|
-
/**
|
|
222
|
-
* Built-in report destinations
|
|
223
|
-
*/
|
|
224
|
-
export declare const reportDestinations: {
|
|
225
|
-
/**
|
|
226
|
-
* Console destination
|
|
227
|
-
*/
|
|
228
|
-
console: ReportDestination;
|
|
229
|
-
/**
|
|
230
|
-
* Local storage destination
|
|
231
|
-
*/
|
|
232
|
-
localStorage: ReportDestination;
|
|
233
|
-
/**
|
|
234
|
-
* Create HTTP destination
|
|
235
|
-
*/
|
|
236
|
-
createHttpDestination(endpoint: string, apiKey?: string): ReportDestination;
|
|
237
|
-
/**
|
|
238
|
-
* Create webhook destination
|
|
239
|
-
*/
|
|
240
|
-
createWebhookDestination(webhookUrl: string, options?: {
|
|
241
|
-
format?: "slack" | "discord" | "teams" | "generic";
|
|
242
|
-
onlyErrors?: boolean;
|
|
243
|
-
}): ReportDestination;
|
|
244
|
-
};
|
|
245
|
-
/**
|
|
246
|
-
* Global logger instance
|
|
247
|
-
*/
|
|
248
|
-
export declare const globalLogger: StructuredLogger;
|
|
249
|
-
/**
|
|
250
|
-
* Global error aggregator
|
|
251
|
-
*/
|
|
252
|
-
export declare const globalErrorAggregator: ErrorAggregator;
|
|
253
|
-
/**
|
|
254
|
-
* Setup error reporting integration
|
|
255
|
-
*/
|
|
256
|
-
export declare function setupErrorReporting(config?: Partial<ReportingConfig>): void;
|
|
257
|
-
/**
|
|
258
|
-
* Reporting utilities
|
|
259
|
-
*/
|
|
260
|
-
export declare const reportingUtils: {
|
|
261
|
-
/**
|
|
262
|
-
* Setup development reporting
|
|
263
|
-
*/
|
|
264
|
-
setupDevelopment(): void;
|
|
265
|
-
/**
|
|
266
|
-
* Setup production reporting
|
|
267
|
-
*/
|
|
268
|
-
setupProduction(config: {
|
|
269
|
-
endpoint?: string;
|
|
270
|
-
apiKey?: string;
|
|
271
|
-
webhookUrl?: string;
|
|
272
|
-
logLevel?: LogLevel;
|
|
273
|
-
}): void;
|
|
274
|
-
/**
|
|
275
|
-
* Create custom logger
|
|
276
|
-
*/
|
|
277
|
-
createLogger(name: string, config?: Partial<ReportingConfig>): Logger;
|
|
278
|
-
/**
|
|
279
|
-
* Get error report
|
|
280
|
-
*/
|
|
281
|
-
getErrorReport(): {
|
|
282
|
-
logs: LogEntry[];
|
|
283
|
-
aggregations: ErrorAggregation[];
|
|
284
|
-
statistics: any;
|
|
285
|
-
};
|
|
286
|
-
};
|
|
287
|
-
//# sourceMappingURL=error-reporting.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error-reporting.d.ts","sourceRoot":"","sources":["../../src/runtime/error-reporting.ts"],"names":[],"mappings":"AAAA;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G;kBAsBE,iBAAiB;IAEtB;;OAEG;oCAC6B,MAAM,WAAW,MAAM,GAAG,iBAAiB;IAgC3E;;OAEG;yCAEW,MAAM,YACT;QACP,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;QAClD,UAAU,CAAC,EAAE,OAAO,CAAA;KACrB,GACA,iBAAiB;CAwFrB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,kBAGvB,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,iBAAwB,CAAA;AAE1D;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,GAAE,OAAO,CAAC,eAAe,CAAM,GAAG,IAAI,CAmB/E;AAED;;GAEG;AACH,eAAO,MAAM,cAAc;IACzB;;OAEG;wBACiB,IAAI;IASxB;;OAEG;4BACqB;QACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,QAAQ,CAAC,EAAE,QAAQ,CAAA;KACpB,GAAG,IAAI;IAwBR;;OAEG;uBACgB,MAAM,WAAW,OAAO,CAAC,eAAe,CAAC,GAAG,MAAM;IAYrE;;OAEG;sBACe;QAChB,IAAI,EAAE,QAAQ,EAAE,CAAA;QAChB,YAAY,EAAE,gBAAgB,EAAE,CAAA;QAChC,UAAU,EAAE,GAAG,CAAA;KAChB;CAOF,CAAA"}
|
|
@@ -1,204 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error-utils.d.ts","sourceRoot":"","sources":["../../src/runtime/error-utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAEjF,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAGnE;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,CAAA;IACnB,gBAAgB,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAAC,CAAA;IAC/C,gBAAgB,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,CAAC,CAAA;IAC/C,SAAS,EAAE,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