@orbytautomation/engine 0.2.3 → 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.
Files changed (61) hide show
  1. package/README.md +1 -1
  2. package/dist/core/EngineLogger.d.ts +34 -2
  3. package/dist/core/EngineLogger.d.ts.map +1 -1
  4. package/dist/core/EngineLogger.js +44 -3
  5. package/dist/core/EngineLogger.js.map +1 -1
  6. package/dist/errors/ErrorCodes.d.ts +205 -6
  7. package/dist/errors/ErrorCodes.d.ts.map +1 -1
  8. package/dist/errors/ErrorCodes.js +398 -5
  9. package/dist/errors/ErrorCodes.js.map +1 -1
  10. package/dist/errors/ErrorDebugger.d.ts +98 -0
  11. package/dist/errors/ErrorDebugger.d.ts.map +1 -0
  12. package/dist/errors/ErrorDebugger.js +283 -0
  13. package/dist/errors/ErrorDebugger.js.map +1 -0
  14. package/dist/errors/ErrorDetector.d.ts +148 -0
  15. package/dist/errors/ErrorDetector.d.ts.map +1 -0
  16. package/dist/errors/ErrorDetector.js +358 -0
  17. package/dist/errors/ErrorDetector.js.map +1 -0
  18. package/dist/errors/ErrorFormatter.d.ts +92 -3
  19. package/dist/errors/ErrorFormatter.d.ts.map +1 -1
  20. package/dist/errors/ErrorFormatter.js +220 -4
  21. package/dist/errors/ErrorFormatter.js.map +1 -1
  22. package/dist/errors/ErrorHandler.d.ts +259 -0
  23. package/dist/errors/ErrorHandler.d.ts.map +1 -0
  24. package/dist/errors/ErrorHandler.js +378 -0
  25. package/dist/errors/ErrorHandler.js.map +1 -0
  26. package/dist/errors/FieldRegistry.d.ts +39 -0
  27. package/dist/errors/FieldRegistry.d.ts.map +1 -1
  28. package/dist/errors/FieldRegistry.js +172 -74
  29. package/dist/errors/FieldRegistry.js.map +1 -1
  30. package/dist/errors/OrbytError.d.ts +85 -3
  31. package/dist/errors/OrbytError.d.ts.map +1 -1
  32. package/dist/errors/OrbytError.js +151 -4
  33. package/dist/errors/OrbytError.js.map +1 -1
  34. package/dist/errors/SchedulerError.d.ts +93 -1
  35. package/dist/errors/SchedulerError.d.ts.map +1 -1
  36. package/dist/errors/SchedulerError.js +145 -1
  37. package/dist/errors/SchedulerError.js.map +1 -1
  38. package/dist/errors/SecurityErrors.d.ts +94 -12
  39. package/dist/errors/SecurityErrors.d.ts.map +1 -1
  40. package/dist/errors/SecurityErrors.js +162 -18
  41. package/dist/errors/SecurityErrors.js.map +1 -1
  42. package/dist/errors/StepError.d.ts +111 -1
  43. package/dist/errors/StepError.d.ts.map +1 -1
  44. package/dist/errors/StepError.js +182 -1
  45. package/dist/errors/StepError.js.map +1 -1
  46. package/dist/errors/WorkflowError.d.ts +139 -2
  47. package/dist/errors/WorkflowError.d.ts.map +1 -1
  48. package/dist/errors/WorkflowError.js +264 -22
  49. package/dist/errors/WorkflowError.js.map +1 -1
  50. package/dist/errors/index.d.ts +5 -1
  51. package/dist/errors/index.d.ts.map +1 -1
  52. package/dist/errors/index.js +7 -4
  53. package/dist/errors/index.js.map +1 -1
  54. package/dist/loader/WorkflowLoader.d.ts +83 -21
  55. package/dist/loader/WorkflowLoader.d.ts.map +1 -1
  56. package/dist/loader/WorkflowLoader.js +169 -55
  57. package/dist/loader/WorkflowLoader.js.map +1 -1
  58. package/dist/parser/SchemaValidator.d.ts.map +1 -1
  59. package/dist/parser/SchemaValidator.js +2 -1
  60. package/dist/parser/SchemaValidator.js.map +1 -1
  61. package/package.json +2 -2
package/README.md CHANGED
@@ -621,7 +621,7 @@ steps:
621
621
 
622
622
  ## Related Packages
623
623
 
624
- - **[@orbytautomation/cli](https://www.npmjs.com/package/@orbytautomation/cli)** — Command-line interface for Orbyt
624
+ - **[@orbytautomation/cli](https://www.npmjs.com/package/@orbytautomation/cli)** — Command-line interface for Orbyt (Coming Soon...)
625
625
  - **[@dev-ecosystem/core](https://www.npmjs.com/package/@dev-ecosystem/core)** — Shared types and utilities
626
626
 
627
627
  ---
@@ -8,13 +8,26 @@
8
8
  * - Severity-based log level filtering using LogLevelSeverity
9
9
  * - Multiple output formats (pretty, text, json, structured)
10
10
  * - Color support with ANSI codes
11
+ * - Engine-generated timestamps (consistent across CLI, API, web dashboards)
11
12
  * - Context and error tracking
12
13
  * - Performance measurement with automatic severity adjustment
13
14
  * - Efficient level comparison using numeric severity
14
15
  *
16
+ * Timestamps are generated by the engine to ensure consistency across:
17
+ * - CLI output
18
+ * - API responses
19
+ * - Web dashboard logs
20
+ * - Monitoring systems
21
+ * - Audit trails
22
+ *
15
23
  * @module core
16
24
  */
17
- import { LogLevel } from '@dev-ecosystem/core';
25
+ import { LogLevel, formatTimestamp } from '@dev-ecosystem/core';
26
+ /**
27
+ * Re-export formatTimestamp for external use
28
+ * Allows other parts of the system to format timestamps consistently
29
+ */
30
+ export { formatTimestamp };
18
31
  /**
19
32
  * Engine-specific log format type
20
33
  */
@@ -119,7 +132,26 @@ export declare class EngineLogger {
119
132
  */
120
133
  setFormat(format: EngineLogFormat): void;
121
134
  /**
122
- * Check if a level will be logged
135
+ * Update timestamp setting
136
+ */
137
+ setTimestamp(enabled: boolean): void;
138
+ /**
139
+ * Update timestamp format
140
+ *
141
+ * @param _format - 'time' | 'datetime' | 'full' (reserved for future use)
142
+ */
143
+ setTimestampFormat(_format: 'time' | 'datetime' | 'full'): void;
144
+ /**
145
+ * Format a timestamp using engine's timestamp formatter
146
+ * Useful for consistent timestamp formatting across the system
147
+ *
148
+ * @param date - Date to format (defaults to current time)
149
+ * @param format - Format type ('time', 'datetime', or 'full')
150
+ * @returns Formatted timestamp string
151
+ */
152
+ formatTimestamp(date?: Date, format?: 'time' | 'datetime' | 'full'): string;
153
+ /**
154
+ * Check if a level will be logged (uses shouldLog from ecosystem-core)
123
155
  */
124
156
  willLog(level: LogLevel): boolean;
125
157
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"EngineLogger.d.ts","sourceRoot":"","sources":["../../src/core/EngineLogger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EACL,QA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everity
9
9
  * - Multiple output formats (pretty, text, json, structured)
10
10
  * - Color support with ANSI codes
11
+ * - Engine-generated timestamps (consistent across CLI, API, web dashboards)
11
12
  * - Context and error tracking
12
13
  * - Performance measurement with automatic severity adjustment
13
14
  * - Efficient level comparison using numeric severity
14
15
  *
16
+ * Timestamps are generated by the engine to ensure consistency across:
17
+ * - CLI output
18
+ * - API responses
19
+ * - Web dashboard logs
20
+ * - Monitoring systems
21
+ * - Audit trails
22
+ *
15
23
  * @module core
16
24
  */
17
- import { LogLevel, LogLevelSeverity, formatLog, createLogEntry, shouldLog, } from '@dev-ecosystem/core';
25
+ import { LogLevel, LogLevelSeverity, formatLog, createLogEntry, shouldLog, formatTimestamp, } from '@dev-ecosystem/core';
26
+ /**
27
+ * Re-export formatTimestamp for external use
28
+ * Allows other parts of the system to format timestamps consistently
29
+ */
30
+ export { formatTimestamp };
18
31
  /**
19
32
  * Engine Logger
20
33
  *
@@ -189,7 +202,34 @@ export class EngineLogger {
189
202
  this.formatOptions.format = format;
190
203
  }
191
204
  /**
192
- * Check if a level will be logged
205
+ * Update timestamp setting
206
+ */
207
+ setTimestamp(enabled) {
208
+ this.config.timestamp = enabled;
209
+ this.formatOptions.timestamp = enabled;
210
+ }
211
+ /**
212
+ * Update timestamp format
213
+ *
214
+ * @param _format - 'time' | 'datetime' | 'full' (reserved for future use)
215
+ */
216
+ setTimestampFormat(_format) {
217
+ // Timestamp format is handled by ecosystem-core formatTimestamp function
218
+ // This method is kept for API compatibility but doesn't modify formatOptions
219
+ }
220
+ /**
221
+ * Format a timestamp using engine's timestamp formatter
222
+ * Useful for consistent timestamp formatting across the system
223
+ *
224
+ * @param date - Date to format (defaults to current time)
225
+ * @param format - Format type ('time', 'datetime', or 'full')
226
+ * @returns Formatted timestamp string
227
+ */
228
+ formatTimestamp(date, format = 'time') {
229
+ return formatTimestamp(date || new Date(), format);
230
+ }
231
+ /**
232
+ * Check if a level will be logged (uses shouldLog from ecosystem-core)
193
233
  */
194
234
  willLog(level) {
195
235
  return shouldLog(level, this.config.level);
@@ -239,13 +279,14 @@ export function createEngineLogger(logLevel, verbose = false) {
239
279
  info: LogLevel.INFO,
240
280
  warn: LogLevel.WARN,
241
281
  error: LogLevel.ERROR,
282
+ fatal: LogLevel.FATAL,
242
283
  };
243
284
  const level = levelMap[logLevel] || LogLevel.INFO;
244
285
  return new EngineLogger({
245
286
  level,
246
287
  format: verbose ? 'pretty' : 'text',
247
288
  colors: true,
248
- timestamp: false, // Engine adds its own prefix
289
+ timestamp: true, // Enable human-readable timestamps
249
290
  source: 'Orbyt',
250
291
  });
251
292
  }
@@ -1 +1 @@
1
- {"version":3,"file":"EngineLogger.js","sourceRoot":"","sources":["../../src/core/EngineLogger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EACL,QAAQ,EACR,gBAAgB,EAChB,SAAS,EACT,cAAc,EACd,SAAS,GAGV,MAAM,qBAAqB,CAAC;AAuB7B;;;;GAIG;AACH,MAAM,OAAO,YAAY;IACf,MAAM,CAA+B;IACrC,aAAa,CAAmB;IAExC,YAAY,MAA0B;QACpC,IAAI,CAAC,MAAM,GAAG;YACZ,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,MAAM,EAAE,MAAM,CAAC,MAAM,IAAI,MAAM;YAC/B,MAAM,EAAE,MAAM,CAAC,MAAM,IAAI,IAAI;YAC7B,SAAS,EAAE,MAAM,CAAC,SAAS,IAAI,IAAI;YACnC,MAAM,EAAE,MAAM,CAAC,MAAM,IAAI,OAAO;SACjC,CAAC;QAEF,IAAI,CAAC,aAAa,GAAG;YACnB,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM;YAC1B,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM;YAC1B,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,SAAS;YAChC,aAAa,EAAE,IAAI;SACpB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAe,EAAE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AAO;KAChB,CAAC,CAAC;AACL,CAAC"}
@@ -1,17 +1,43 @@
1
1
  /**
2
2
  * Orbyt Error Codes
3
3
  *
4
- * Stable error codes for reliable error handling and documentation.
4
+ * Structured error codes for the Orbyt workflow execution engine.
5
+ * These codes are separate from ecosystem exit codes (process-level).
6
+ *
7
+ * ARCHITECTURE:
8
+ * ============
9
+ * - Error Codes (ORB-XX-NNN): Structured diagnostic codes for detailed error identification
10
+ * - Exit Codes (100-509): Process-level codes from @dev-ecosystem/core for shell scripts
11
+ *
12
+ * TWO-LAYER SYSTEM:
13
+ * ================
14
+ * 1. Exit Codes (@dev-ecosystem/core): Process termination codes for the whole ecosystem
15
+ * - Used by CLI, API, SDK to determine process exit status
16
+ * - Example: ExitCodes.INVALID_SCHEMA (103) for schema validation failures
17
+ *
18
+ * 2. Error Codes (This file): Detailed diagnostic codes specific to Orbyt
19
+ * - Used internally by engine for precise error identification
20
+ * - Maps to exit codes for process termination
21
+ * - Example: ORB-S-001 (unknown field) → ExitCodes.INVALID_SCHEMA
22
+ *
5
23
  * Format: ORB-[Category]-[Number]
6
24
  *
7
25
  * Categories:
8
- * - S: Schema/Structure errors
9
- * - V: Validation/Logic errors
10
- * - E: Execution errors
11
- * - R: Runtime errors
26
+ * - S: Schema/Structure errors (YAML syntax, field validation)
27
+ * - V: Validation/Logic errors (duplicate IDs, circular deps)
28
+ * - E: Execution errors (step failures, timeouts)
29
+ * - R: Runtime errors (file not found, permissions)
30
+ *
31
+ * ADDING NEW ERRORS:
32
+ * =================
33
+ * 1. Add error code enum value below
34
+ * 2. Add description in getErrorDescription()
35
+ * 3. Add exit code mapping in getExitCodeForError()
36
+ * 4. Add to appropriate error class (WorkflowError, StepError, etc.)
12
37
  *
13
38
  * @module errors
14
39
  */
40
+ import { ExitCodes } from '@dev-ecosystem/core';
15
41
  export declare enum OrbytErrorCode {
16
42
  /** Unknown field in workflow definition */
17
43
  SCHEMA_UNKNOWN_FIELD = "ORB-S-001",
@@ -25,6 +51,8 @@ export declare enum OrbytErrorCode {
25
51
  SCHEMA_PARSE_ERROR = "ORB-S-005",
26
52
  /** Invalid field format/pattern */
27
53
  SCHEMA_INVALID_FORMAT = "ORB-S-006",
54
+ /** Reserved field detected (security) */
55
+ SCHEMA_RESERVED_FIELD = "ORB-S-007",
28
56
  /** Duplicate step ID */
29
57
  VALIDATION_DUPLICATE_ID = "ORB-V-001",
30
58
  /** Reference to non-existent step */
@@ -41,6 +69,10 @@ export declare enum OrbytErrorCode {
41
69
  VALIDATION_MISSING_INPUT = "ORB-V-007",
42
70
  /** Invalid adapter/action */
43
71
  VALIDATION_UNKNOWN_ADAPTER = "ORB-V-008",
72
+ /** Workflow has no steps */
73
+ VALIDATION_EMPTY_WORKFLOW = "ORB-V-009",
74
+ /** Invalid condition expression syntax */
75
+ VALIDATION_INVALID_CONDITION = "ORB-V-010",
44
76
  /** Step execution failed */
45
77
  EXECUTION_STEP_FAILED = "ORB-E-001",
46
78
  /** Timeout exceeded */
@@ -49,23 +81,190 @@ export declare enum OrbytErrorCode {
49
81
  EXECUTION_ADAPTER_ERROR = "ORB-E-003",
50
82
  /** Workflow cancelled */
51
83
  EXECUTION_CANCELLED = "ORB-E-004",
84
+ /** Step dependency failed */
85
+ EXECUTION_DEPENDENCY_FAILED = "ORB-E-005",
86
+ /** Conditional check failed */
87
+ EXECUTION_CONDITION_FAILED = "ORB-E-006",
52
88
  /** File not found */
53
89
  RUNTIME_FILE_NOT_FOUND = "ORB-R-001",
54
90
  /** Permission denied */
55
91
  RUNTIME_PERMISSION_DENIED = "ORB-R-002",
56
92
  /** Internal engine error */
57
- RUNTIME_INTERNAL_ERROR = "ORB-R-003"
93
+ RUNTIME_INTERNAL_ERROR = "ORB-R-003",
94
+ /** Adapter not registered */
95
+ RUNTIME_ADAPTER_NOT_FOUND = "ORB-R-004",
96
+ /** Resource exhausted */
97
+ RUNTIME_RESOURCE_EXHAUSTED = "ORB-R-005"
58
98
  }
59
99
  /**
60
100
  * Error severity levels
101
+ * Used for prioritizing and determining execution control
102
+ *
103
+ * EXECUTION CONTROL BEHAVIOR:
104
+ * - CRITICAL/FATAL: Stop entire workflow execution immediately
105
+ * - ERROR/HIGH: Stop entire workflow execution (default for errors)
106
+ * - MEDIUM: Stop current step, attempt to continue to next step
107
+ * - LOW: Log warning and continue current step
108
+ * - WARNING: Log warning message, continue execution
109
+ * - INFO: Log informational message, continue execution
61
110
  */
62
111
  export declare enum ErrorSeverity {
112
+ /** Critical error - stop entire workflow immediately (unrecoverable) */
113
+ CRITICAL = "critical",
114
+ /** Fatal error - stop entire workflow (severe failure) */
115
+ FATAL = "fatal",
116
+ /** High severity error - stop entire workflow */
63
117
  ERROR = "error",
118
+ /** Medium severity - stop current step, try to continue workflow */
119
+ MEDIUM = "medium",
120
+ /** Low severity - log and continue current step */
121
+ LOW = "low",
122
+ /** Warning - log warning message, continue execution */
64
123
  WARNING = "warning",
124
+ /** Informational message */
65
125
  INFO = "info"
66
126
  }
67
127
  /**
68
128
  * Get human-readable category name from error code
129
+ *
130
+ * @param code - Orbyt error code
131
+ * @returns Category name (e.g., "Schema Error")
132
+ *
133
+ * @example
134
+ * ```typescript
135
+ * const category = getErrorCategory(OrbytErrorCode.SCHEMA_UNKNOWN_FIELD);
136
+ * // Returns: "Schema Error"
137
+ * ```
69
138
  */
70
139
  export declare function getErrorCategory(code: OrbytErrorCode): string;
140
+ /**
141
+ * Get detailed description for an error code
142
+ * Helps users understand what went wrong
143
+ *
144
+ * @param code - Orbyt error code
145
+ * @returns Human-readable description
146
+ *
147
+ * @example
148
+ * ```typescript
149
+ * const desc = getErrorDescription(OrbytErrorCode.SCHEMA_UNKNOWN_FIELD);
150
+ * // Returns: "Workflow contains an unknown or misspelled field name"
151
+ * ```
152
+ */
153
+ export declare function getErrorDescription(code: OrbytErrorCode): string;
154
+ /**
155
+ * Map Orbyt error code to ecosystem exit code
156
+ * Determines which process exit code should be used
157
+ *
158
+ * @param code - Orbyt error code
159
+ * @returns Exit code from @dev-ecosystem/core
160
+ *
161
+ * @example
162
+ * ```typescript
163
+ * const exitCode = getExitCodeForError(OrbytErrorCode.SCHEMA_UNKNOWN_FIELD);
164
+ * // Returns: ExitCodes.INVALID_SCHEMA (103)
165
+ * ```
166
+ */
167
+ export declare function getExitCodeForError(code: OrbytErrorCode): ExitCodes;
168
+ /**
169
+ * Check if an error code represents a user error (fixable by changing workflow)
170
+ * vs system error (infrastructure, permissions, etc.)
171
+ *
172
+ * User errors are problems with the workflow definition that the user can fix.
173
+ * System errors are infrastructure/runtime issues outside user control.
174
+ *
175
+ * @param code - Orbyt error code
176
+ * @returns True if error is user-fixable
177
+ *
178
+ * @example
179
+ * ```typescript
180
+ * if (isUserError(error.code)) {
181
+ * console.log('Fix your workflow definition');
182
+ * } else {
183
+ * console.log('Contact system administrator');
184
+ * }
185
+ * ```
186
+ */
187
+ export declare function isUserError(code: OrbytErrorCode): boolean;
188
+ /**
189
+ * Check if an error code represents a retryable error
190
+ * Some errors (like timeouts, adapter failures) might succeed on retry.
191
+ * Others (like validation errors) will always fail.
192
+ *
193
+ * @param code - Orbyt error code
194
+ * @returns True if error might succeed on retry
195
+ *
196
+ * @example
197
+ * ```typescript
198
+ * if (isRetryable(error.code) && retryCount < maxRetries) {
199
+ * console.log('Retrying...');
200
+ * await retry();
201
+ * }
202
+ * ```
203
+ */
204
+ export declare function isRetryable(code: OrbytErrorCode): boolean;
205
+ /**
206
+ * Get suggested action for an error code
207
+ * Provides actionable guidance for users
208
+ *
209
+ * @param code - Orbyt error code
210
+ * @returns Suggested action to fix the error
211
+ *
212
+ * @example
213
+ * ```typescript
214
+ * const action = getSuggestedAction(OrbytErrorCode.SCHEMA_UNKNOWN_FIELD);
215
+ * console.log(action); // "Check field names against schema documentation"
216
+ * ```
217
+ */
218
+ export declare function getSuggestedAction(code: OrbytErrorCode): string;
219
+ /**
220
+ * Execution Control Actions
221
+ * Determines what action to take when error occurs
222
+ */
223
+ export declare enum ExecutionControl {
224
+ /** Stop entire workflow execution immediately */
225
+ STOP_WORKFLOW = "STOP_WORKFLOW",
226
+ /** Stop current step, try to continue to next step */
227
+ STOP_STEP = "STOP_STEP",
228
+ /** Continue execution, just log the issue */
229
+ CONTINUE = "CONTINUE"
230
+ }
231
+ /**
232
+ * Get execution control action based on severity
233
+ * Determines whether to stop workflow, stop step, or continue
234
+ *
235
+ * @param severity - Error severity level
236
+ * @returns Execution control action
237
+ *
238
+ * @example
239
+ * ```typescript
240
+ * const action = getExecutionControl(ErrorSeverity.CRITICAL);
241
+ * // Returns: ExecutionControl.STOP_WORKFLOW
242
+ *
243
+ * const action2 = getExecutionControl(ErrorSeverity.MEDIUM);
244
+ * // Returns: ExecutionControl.STOP_STEP
245
+ * ```
246
+ */
247
+ export declare function getExecutionControl(severity: ErrorSeverity): ExecutionControl;
248
+ /**
249
+ * Check if severity should stop workflow execution
250
+ *
251
+ * @param severity - Error severity level
252
+ * @returns True if workflow should stop
253
+ */
254
+ export declare function shouldStopWorkflow(severity: ErrorSeverity): boolean;
255
+ /**
256
+ * Check if severity should stop step execution
257
+ *
258
+ * @param severity - Error severity level
259
+ * @returns True if step should stop
260
+ */
261
+ export declare function shouldStopStep(severity: ErrorSeverity): boolean;
262
+ /**
263
+ * Get severity level from error code
264
+ * Auto-determines appropriate severity for error code
265
+ *
266
+ * @param code - Orbyt error code
267
+ * @returns Appropriate severity level
268
+ */
269
+ export declare function getSeverityForErrorCode(code: OrbytErrorCode): ErrorSeverity;
71
270
  //# sourceMappingURL=ErrorCodes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorCodes.d.ts","sourceRoot":"","sources":["../../src/errors/ErrorCodes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,oBAAY,cAAc;IAKxB,2CAA2C;IAC3C,oBAAoB,cAAc;IAElC,yBAAyB;IACzB,mBAAmB,cAAc;IAEjC,6BAA6B;IAC7B,oBAAoB,cAAc;IAElC,yBAAyB;IACzB,mBAAmB,cAAc;IA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