@joyjit/vikunja-mcp 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +51 -0
- package/LICENSE +21 -0
- package/README.md +1377 -0
- package/dist/auth/AuthManager.d.ts +63 -0
- package/dist/auth/AuthManager.d.ts.map +1 -0
- package/dist/auth/AuthManager.js +137 -0
- package/dist/auth/AuthManager.js.map +1 -0
- package/dist/auth/index.d.ts +7 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +14 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/permissions.d.ts +60 -0
- package/dist/auth/permissions.d.ts.map +1 -0
- package/dist/auth/permissions.js +173 -0
- package/dist/auth/permissions.js.map +1 -0
- package/dist/client/VikunjaClientFactory.d.ts +32 -0
- package/dist/client/VikunjaClientFactory.d.ts.map +1 -0
- package/dist/client/VikunjaClientFactory.js +66 -0
- package/dist/client/VikunjaClientFactory.js.map +1 -0
- package/dist/client.d.ts +57 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +128 -0
- package/dist/client.js.map +1 -0
- package/dist/config/ConfigurationManager.d.ts +63 -0
- package/dist/config/ConfigurationManager.d.ts.map +1 -0
- package/dist/config/ConfigurationManager.js +243 -0
- package/dist/config/ConfigurationManager.js.map +1 -0
- package/dist/config/index.d.ts +8 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +27 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/types.d.ts +434 -0
- package/dist/config/types.d.ts.map +1 -0
- package/dist/config/types.js +93 -0
- package/dist/config/types.js.map +1 -0
- package/dist/formatters/BatchImportResponseFormatter.d.ts +89 -0
- package/dist/formatters/BatchImportResponseFormatter.d.ts.map +1 -0
- package/dist/formatters/BatchImportResponseFormatter.js +125 -0
- package/dist/formatters/BatchImportResponseFormatter.js.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +119 -0
- package/dist/index.js.map +1 -0
- package/dist/middleware/direct-middleware.d.ts +9 -0
- package/dist/middleware/direct-middleware.d.ts.map +1 -0
- package/dist/middleware/direct-middleware.js +49 -0
- package/dist/middleware/direct-middleware.js.map +1 -0
- package/dist/middleware/index.d.ts +8 -0
- package/dist/middleware/index.d.ts.map +1 -0
- package/dist/middleware/index.js +21 -0
- package/dist/middleware/index.js.map +1 -0
- package/dist/middleware/simplified-rate-limit.d.ts +147 -0
- package/dist/middleware/simplified-rate-limit.d.ts.map +1 -0
- package/dist/middleware/simplified-rate-limit.js +542 -0
- package/dist/middleware/simplified-rate-limit.js.map +1 -0
- package/dist/parsers/CSVParser.d.ts +36 -0
- package/dist/parsers/CSVParser.d.ts.map +1 -0
- package/dist/parsers/CSVParser.js +69 -0
- package/dist/parsers/CSVParser.js.map +1 -0
- package/dist/parsers/InputParserFactory.d.ts +17 -0
- package/dist/parsers/InputParserFactory.d.ts.map +1 -0
- package/dist/parsers/InputParserFactory.js +137 -0
- package/dist/parsers/InputParserFactory.js.map +1 -0
- package/dist/parsers/JSONParser.d.ts +74 -0
- package/dist/parsers/JSONParser.d.ts.map +1 -0
- package/dist/parsers/JSONParser.js +69 -0
- package/dist/parsers/JSONParser.js.map +1 -0
- package/dist/services/EntityResolver.d.ts +75 -0
- package/dist/services/EntityResolver.d.ts.map +1 -0
- package/dist/services/EntityResolver.js +176 -0
- package/dist/services/EntityResolver.js.map +1 -0
- package/dist/services/TaskCreationService.d.ts +96 -0
- package/dist/services/TaskCreationService.d.ts.map +1 -0
- package/dist/services/TaskCreationService.js +361 -0
- package/dist/services/TaskCreationService.js.map +1 -0
- package/dist/storage/SimpleFilterStorage.d.ts +110 -0
- package/dist/storage/SimpleFilterStorage.d.ts.map +1 -0
- package/dist/storage/SimpleFilterStorage.js +358 -0
- package/dist/storage/SimpleFilterStorage.js.map +1 -0
- package/dist/storage/index.d.ts +59 -0
- package/dist/storage/index.d.ts.map +1 -0
- package/dist/storage/index.js +117 -0
- package/dist/storage/index.js.map +1 -0
- package/dist/tools/auth.d.ts +9 -0
- package/dist/tools/auth.d.ts.map +1 -0
- package/dist/tools/auth.js +80 -0
- package/dist/tools/auth.js.map +1 -0
- package/dist/tools/batch-import.d.ts +5 -0
- package/dist/tools/batch-import.d.ts.map +1 -0
- package/dist/tools/batch-import.js +150 -0
- package/dist/tools/batch-import.js.map +1 -0
- package/dist/tools/export.d.ts +14 -0
- package/dist/tools/export.d.ts.map +1 -0
- package/dist/tools/export.js +232 -0
- package/dist/tools/export.js.map +1 -0
- package/dist/tools/filters.d.ts +8 -0
- package/dist/tools/filters.d.ts.map +1 -0
- package/dist/tools/filters.js +419 -0
- package/dist/tools/filters.js.map +1 -0
- package/dist/tools/index.d.ts +36 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +87 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/labels.d.ts +9 -0
- package/dist/tools/labels.d.ts.map +1 -0
- package/dist/tools/labels.js +152 -0
- package/dist/tools/labels.js.map +1 -0
- package/dist/tools/projects/crud.d.ts +118 -0
- package/dist/tools/projects/crud.d.ts.map +1 -0
- package/dist/tools/projects/crud.js +389 -0
- package/dist/tools/projects/crud.js.map +1 -0
- package/dist/tools/projects/hierarchy.d.ts +68 -0
- package/dist/tools/projects/hierarchy.d.ts.map +1 -0
- package/dist/tools/projects/hierarchy.js +280 -0
- package/dist/tools/projects/hierarchy.js.map +1 -0
- package/dist/tools/projects/index.d.ts +17 -0
- package/dist/tools/projects/index.d.ts.map +1 -0
- package/dist/tools/projects/index.js +169 -0
- package/dist/tools/projects/index.js.map +1 -0
- package/dist/tools/projects/response-formatter.d.ts +46 -0
- package/dist/tools/projects/response-formatter.d.ts.map +1 -0
- package/dist/tools/projects/response-formatter.js +131 -0
- package/dist/tools/projects/response-formatter.js.map +1 -0
- package/dist/tools/projects/sharing.d.ts +89 -0
- package/dist/tools/projects/sharing.d.ts.map +1 -0
- package/dist/tools/projects/sharing.js +272 -0
- package/dist/tools/projects/sharing.js.map +1 -0
- package/dist/tools/projects/validation.d.ts +39 -0
- package/dist/tools/projects/validation.d.ts.map +1 -0
- package/dist/tools/projects/validation.js +129 -0
- package/dist/tools/projects/validation.js.map +1 -0
- package/dist/tools/projects.d.ts +10 -0
- package/dist/tools/projects.d.ts.map +1 -0
- package/dist/tools/projects.js +42 -0
- package/dist/tools/projects.js.map +1 -0
- package/dist/tools/task-assignees.d.ts +13 -0
- package/dist/tools/task-assignees.d.ts.map +1 -0
- package/dist/tools/task-assignees.js +62 -0
- package/dist/tools/task-assignees.js.map +1 -0
- package/dist/tools/task-bulk.d.ts +13 -0
- package/dist/tools/task-bulk.d.ts.map +1 -0
- package/dist/tools/task-bulk.js +113 -0
- package/dist/tools/task-bulk.js.map +1 -0
- package/dist/tools/task-comments.d.ts +13 -0
- package/dist/tools/task-comments.d.ts.map +1 -0
- package/dist/tools/task-comments.js +53 -0
- package/dist/tools/task-comments.js.map +1 -0
- package/dist/tools/task-crud.d.ts +13 -0
- package/dist/tools/task-crud.d.ts.map +1 -0
- package/dist/tools/task-crud.js +163 -0
- package/dist/tools/task-crud.js.map +1 -0
- package/dist/tools/task-labels.d.ts +13 -0
- package/dist/tools/task-labels.d.ts.map +1 -0
- package/dist/tools/task-labels.js +62 -0
- package/dist/tools/task-labels.js.map +1 -0
- package/dist/tools/task-relations.d.ts +13 -0
- package/dist/tools/task-relations.d.ts.map +1 -0
- package/dist/tools/task-relations.js +72 -0
- package/dist/tools/task-relations.js.map +1 -0
- package/dist/tools/task-reminders.d.ts +13 -0
- package/dist/tools/task-reminders.d.ts.map +1 -0
- package/dist/tools/task-reminders.js +63 -0
- package/dist/tools/task-reminders.js.map +1 -0
- package/dist/tools/tasks/assignees/AssigneeOperationsService.d.ts +31 -0
- package/dist/tools/tasks/assignees/AssigneeOperationsService.d.ts.map +1 -0
- package/dist/tools/tasks/assignees/AssigneeOperationsService.js +95 -0
- package/dist/tools/tasks/assignees/AssigneeOperationsService.js.map +1 -0
- package/dist/tools/tasks/assignees/AssigneeResponseFormatter.d.ts +32 -0
- package/dist/tools/tasks/assignees/AssigneeResponseFormatter.d.ts.map +1 -0
- package/dist/tools/tasks/assignees/AssigneeResponseFormatter.js +84 -0
- package/dist/tools/tasks/assignees/AssigneeResponseFormatter.js.map +1 -0
- package/dist/tools/tasks/assignees/AssigneeValidationService.d.ts +36 -0
- package/dist/tools/tasks/assignees/AssigneeValidationService.d.ts.map +1 -0
- package/dist/tools/tasks/assignees/AssigneeValidationService.js +63 -0
- package/dist/tools/tasks/assignees/AssigneeValidationService.js.map +1 -0
- package/dist/tools/tasks/assignees/index.d.ts +40 -0
- package/dist/tools/tasks/assignees/index.d.ts.map +1 -0
- package/dist/tools/tasks/assignees/index.js +72 -0
- package/dist/tools/tasks/assignees/index.js.map +1 -0
- package/dist/tools/tasks/bulk/BulkOperationValidator.d.ts +51 -0
- package/dist/tools/tasks/bulk/BulkOperationValidator.d.ts.map +1 -0
- package/dist/tools/tasks/bulk/BulkOperationValidator.js +149 -0
- package/dist/tools/tasks/bulk/BulkOperationValidator.js.map +1 -0
- package/dist/tools/tasks/bulk-operations-simplified.d.ts +39 -0
- package/dist/tools/tasks/bulk-operations-simplified.d.ts.map +1 -0
- package/dist/tools/tasks/bulk-operations-simplified.js +249 -0
- package/dist/tools/tasks/bulk-operations-simplified.js.map +1 -0
- package/dist/tools/tasks/bulk-operations.d.ts +8 -0
- package/dist/tools/tasks/bulk-operations.d.ts.map +1 -0
- package/dist/tools/tasks/bulk-operations.js +14 -0
- package/dist/tools/tasks/bulk-operations.js.map +1 -0
- package/dist/tools/tasks/comments/CommentOperationsService.d.ts +23 -0
- package/dist/tools/tasks/comments/CommentOperationsService.d.ts.map +1 -0
- package/dist/tools/tasks/comments/CommentOperationsService.js +37 -0
- package/dist/tools/tasks/comments/CommentOperationsService.js.map +1 -0
- package/dist/tools/tasks/comments/CommentResponseFormatter.d.ts +29 -0
- package/dist/tools/tasks/comments/CommentResponseFormatter.d.ts.map +1 -0
- package/dist/tools/tasks/comments/CommentResponseFormatter.js +69 -0
- package/dist/tools/tasks/comments/CommentResponseFormatter.js.map +1 -0
- package/dist/tools/tasks/comments/CommentValidationService.d.ts +33 -0
- package/dist/tools/tasks/comments/CommentValidationService.d.ts.map +1 -0
- package/dist/tools/tasks/comments/CommentValidationService.js +50 -0
- package/dist/tools/tasks/comments/CommentValidationService.js.map +1 -0
- package/dist/tools/tasks/comments/index.d.ts +38 -0
- package/dist/tools/tasks/comments/index.d.ts.map +1 -0
- package/dist/tools/tasks/comments/index.js +62 -0
- package/dist/tools/tasks/comments/index.js.map +1 -0
- package/dist/tools/tasks/constants.d.ts +17 -0
- package/dist/tools/tasks/constants.d.ts.map +1 -0
- package/dist/tools/tasks/constants.js +36 -0
- package/dist/tools/tasks/constants.js.map +1 -0
- package/dist/tools/tasks/crud/TaskCreationService.d.ts +26 -0
- package/dist/tools/tasks/crud/TaskCreationService.d.ts.map +1 -0
- package/dist/tools/tasks/crud/TaskCreationService.js +228 -0
- package/dist/tools/tasks/crud/TaskCreationService.js.map +1 -0
- package/dist/tools/tasks/crud/TaskDeletionService.d.ts +18 -0
- package/dist/tools/tasks/crud/TaskDeletionService.d.ts.map +1 -0
- package/dist/tools/tasks/crud/TaskDeletionService.js +89 -0
- package/dist/tools/tasks/crud/TaskDeletionService.js.map +1 -0
- package/dist/tools/tasks/crud/TaskReadService.d.ts +18 -0
- package/dist/tools/tasks/crud/TaskReadService.d.ts.map +1 -0
- package/dist/tools/tasks/crud/TaskReadService.js +58 -0
- package/dist/tools/tasks/crud/TaskReadService.js.map +1 -0
- package/dist/tools/tasks/crud/TaskResponseFormatter.d.ts +18 -0
- package/dist/tools/tasks/crud/TaskResponseFormatter.d.ts.map +1 -0
- package/dist/tools/tasks/crud/TaskResponseFormatter.js +244 -0
- package/dist/tools/tasks/crud/TaskResponseFormatter.js.map +1 -0
- package/dist/tools/tasks/crud/TaskUpdateService.d.ts +29 -0
- package/dist/tools/tasks/crud/TaskUpdateService.d.ts.map +1 -0
- package/dist/tools/tasks/crud/TaskUpdateService.js +231 -0
- package/dist/tools/tasks/crud/TaskUpdateService.js.map +1 -0
- package/dist/tools/tasks/crud/index.d.ts +16 -0
- package/dist/tools/tasks/crud/index.d.ts.map +1 -0
- package/dist/tools/tasks/crud/index.js +20 -0
- package/dist/tools/tasks/crud/index.js.map +1 -0
- package/dist/tools/tasks/filtering/FilterExecutor.d.ts +38 -0
- package/dist/tools/tasks/filtering/FilterExecutor.d.ts.map +1 -0
- package/dist/tools/tasks/filtering/FilterExecutor.js +200 -0
- package/dist/tools/tasks/filtering/FilterExecutor.js.map +1 -0
- package/dist/tools/tasks/filtering/FilterValidator.d.ts +56 -0
- package/dist/tools/tasks/filtering/FilterValidator.d.ts.map +1 -0
- package/dist/tools/tasks/filtering/FilterValidator.js +183 -0
- package/dist/tools/tasks/filtering/FilterValidator.js.map +1 -0
- package/dist/tools/tasks/filtering/TaskFilteringOrchestrator.d.ts +75 -0
- package/dist/tools/tasks/filtering/TaskFilteringOrchestrator.d.ts.map +1 -0
- package/dist/tools/tasks/filtering/TaskFilteringOrchestrator.js +193 -0
- package/dist/tools/tasks/filtering/TaskFilteringOrchestrator.js.map +1 -0
- package/dist/tools/tasks/filtering/evaluators.d.ts +38 -0
- package/dist/tools/tasks/filtering/evaluators.d.ts.map +1 -0
- package/dist/tools/tasks/filtering/evaluators.js +200 -0
- package/dist/tools/tasks/filtering/evaluators.js.map +1 -0
- package/dist/tools/tasks/filtering/index.d.ts +11 -0
- package/dist/tools/tasks/filtering/index.d.ts.map +1 -0
- package/dist/tools/tasks/filtering/index.js +26 -0
- package/dist/tools/tasks/filtering/index.js.map +1 -0
- package/dist/tools/tasks/index.d.ts +9 -0
- package/dist/tools/tasks/index.d.ts.map +1 -0
- package/dist/tools/tasks/index.js +245 -0
- package/dist/tools/tasks/index.js.map +1 -0
- package/dist/tools/tasks/labels.d.ts +39 -0
- package/dist/tools/tasks/labels.d.ts.map +1 -0
- package/dist/tools/tasks/labels.js +150 -0
- package/dist/tools/tasks/labels.js.map +1 -0
- package/dist/tools/tasks/reminders.d.ts +39 -0
- package/dist/tools/tasks/reminders.d.ts.map +1 -0
- package/dist/tools/tasks/reminders.js +147 -0
- package/dist/tools/tasks/reminders.js.map +1 -0
- package/dist/tools/tasks/types/filters.d.ts +121 -0
- package/dist/tools/tasks/types/filters.d.ts.map +1 -0
- package/dist/tools/tasks/types/filters.js +7 -0
- package/dist/tools/tasks/types/filters.js.map +1 -0
- package/dist/tools/tasks/validation.d.ts +44 -0
- package/dist/tools/tasks/validation.d.ts.map +1 -0
- package/dist/tools/tasks/validation.js +121 -0
- package/dist/tools/tasks/validation.js.map +1 -0
- package/dist/tools/tasks-relations.d.ts +24 -0
- package/dist/tools/tasks-relations.d.ts.map +1 -0
- package/dist/tools/tasks-relations.js +203 -0
- package/dist/tools/tasks-relations.js.map +1 -0
- package/dist/tools/tasks.d.ts +6 -0
- package/dist/tools/tasks.d.ts.map +1 -0
- package/dist/tools/tasks.js +10 -0
- package/dist/tools/tasks.js.map +1 -0
- package/dist/tools/teams.d.ts +9 -0
- package/dist/tools/teams.d.ts.map +1 -0
- package/dist/tools/teams.js +332 -0
- package/dist/tools/teams.js.map +1 -0
- package/dist/tools/templates.d.ts +9 -0
- package/dist/tools/templates.d.ts.map +1 -0
- package/dist/tools/templates.js +356 -0
- package/dist/tools/templates.js.map +1 -0
- package/dist/tools/users.d.ts +9 -0
- package/dist/tools/users.d.ts.map +1 -0
- package/dist/tools/users.js +239 -0
- package/dist/tools/users.js.map +1 -0
- package/dist/tools/webhooks.d.ts +11 -0
- package/dist/tools/webhooks.d.ts.map +1 -0
- package/dist/tools/webhooks.js +378 -0
- package/dist/tools/webhooks.js.map +1 -0
- package/dist/transforms/base.d.ts +178 -0
- package/dist/transforms/base.d.ts.map +1 -0
- package/dist/transforms/base.js +134 -0
- package/dist/transforms/base.js.map +1 -0
- package/dist/transforms/field-selector.d.ts +27 -0
- package/dist/transforms/field-selector.d.ts.map +1 -0
- package/dist/transforms/field-selector.js +91 -0
- package/dist/transforms/field-selector.js.map +1 -0
- package/dist/transforms/task.d.ts +207 -0
- package/dist/transforms/task.d.ts.map +1 -0
- package/dist/transforms/task.js +259 -0
- package/dist/transforms/task.js.map +1 -0
- package/dist/types/errors.d.ts +55 -0
- package/dist/types/errors.d.ts.map +1 -0
- package/dist/types/errors.js +44 -0
- package/dist/types/errors.js.map +1 -0
- package/dist/types/filters.d.ts +146 -0
- package/dist/types/filters.d.ts.map +1 -0
- package/dist/types/filters.js +22 -0
- package/dist/types/filters.js.map +1 -0
- package/dist/types/index.d.ts +151 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +24 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/node-vikunja-extended.d.ts +36 -0
- package/dist/types/node-vikunja-extended.d.ts.map +1 -0
- package/dist/types/node-vikunja-extended.js +25 -0
- package/dist/types/node-vikunja-extended.js.map +1 -0
- package/dist/types/responses.d.ts +118 -0
- package/dist/types/responses.d.ts.map +1 -0
- package/dist/types/responses.js +26 -0
- package/dist/types/responses.js.map +1 -0
- package/dist/types/vikunja.d.ts +315 -0
- package/dist/types/vikunja.d.ts.map +1 -0
- package/dist/types/vikunja.js +7 -0
- package/dist/types/vikunja.js.map +1 -0
- package/dist/utils/auth-error-handler.d.ts +23 -0
- package/dist/utils/auth-error-handler.d.ts.map +1 -0
- package/dist/utils/auth-error-handler.js +162 -0
- package/dist/utils/auth-error-handler.js.map +1 -0
- package/dist/utils/error-handler.d.ts +38 -0
- package/dist/utils/error-handler.d.ts.map +1 -0
- package/dist/utils/error-handler.js +288 -0
- package/dist/utils/error-handler.js.map +1 -0
- package/dist/utils/filtering/ClientSideFilteringStrategy.d.ts +13 -0
- package/dist/utils/filtering/ClientSideFilteringStrategy.d.ts.map +1 -0
- package/dist/utils/filtering/ClientSideFilteringStrategy.js +63 -0
- package/dist/utils/filtering/ClientSideFilteringStrategy.js.map +1 -0
- package/dist/utils/filtering/FilteringContext.d.ts +27 -0
- package/dist/utils/filtering/FilteringContext.d.ts.map +1 -0
- package/dist/utils/filtering/FilteringContext.js +43 -0
- package/dist/utils/filtering/FilteringContext.js.map +1 -0
- package/dist/utils/filtering/HybridFilteringStrategy.d.ts +15 -0
- package/dist/utils/filtering/HybridFilteringStrategy.d.ts.map +1 -0
- package/dist/utils/filtering/HybridFilteringStrategy.js +55 -0
- package/dist/utils/filtering/HybridFilteringStrategy.js.map +1 -0
- package/dist/utils/filtering/ServerSideFilteringStrategy.d.ts +13 -0
- package/dist/utils/filtering/ServerSideFilteringStrategy.d.ts.map +1 -0
- package/dist/utils/filtering/ServerSideFilteringStrategy.js +64 -0
- package/dist/utils/filtering/ServerSideFilteringStrategy.js.map +1 -0
- package/dist/utils/filtering/TaskFilteringStrategy.d.ts +19 -0
- package/dist/utils/filtering/TaskFilteringStrategy.d.ts.map +1 -0
- package/dist/utils/filtering/TaskFilteringStrategy.js +10 -0
- package/dist/utils/filtering/TaskFilteringStrategy.js.map +1 -0
- package/dist/utils/filtering/index.d.ts +13 -0
- package/dist/utils/filtering/index.d.ts.map +1 -0
- package/dist/utils/filtering/index.js +20 -0
- package/dist/utils/filtering/index.js.map +1 -0
- package/dist/utils/filtering/types.d.ts +62 -0
- package/dist/utils/filtering/types.d.ts.map +1 -0
- package/dist/utils/filtering/types.js +6 -0
- package/dist/utils/filtering/types.js.map +1 -0
- package/dist/utils/filters.d.ts +97 -0
- package/dist/utils/filters.d.ts.map +1 -0
- package/dist/utils/filters.js +939 -0
- package/dist/utils/filters.js.map +1 -0
- package/dist/utils/logger.d.ts +26 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +83 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/memory.d.ts +71 -0
- package/dist/utils/memory.d.ts.map +1 -0
- package/dist/utils/memory.js +194 -0
- package/dist/utils/memory.js.map +1 -0
- package/dist/utils/performance/batch-processor.d.ts +77 -0
- package/dist/utils/performance/batch-processor.d.ts.map +1 -0
- package/dist/utils/performance/batch-processor.js +218 -0
- package/dist/utils/performance/batch-processor.js.map +1 -0
- package/dist/utils/performance/index.d.ts +42 -0
- package/dist/utils/performance/index.d.ts.map +1 -0
- package/dist/utils/performance/index.js +49 -0
- package/dist/utils/performance/index.js.map +1 -0
- package/dist/utils/performance/performance-monitor.d.ts +116 -0
- package/dist/utils/performance/performance-monitor.d.ts.map +1 -0
- package/dist/utils/performance/performance-monitor.js +307 -0
- package/dist/utils/performance/performance-monitor.js.map +1 -0
- package/dist/utils/response-factory.d.ts +81 -0
- package/dist/utils/response-factory.d.ts.map +1 -0
- package/dist/utils/response-factory.js +86 -0
- package/dist/utils/response-factory.js.map +1 -0
- package/dist/utils/retry.d.ts +146 -0
- package/dist/utils/retry.d.ts.map +1 -0
- package/dist/utils/retry.js +281 -0
- package/dist/utils/retry.js.map +1 -0
- package/dist/utils/security.d.ts +70 -0
- package/dist/utils/security.d.ts.map +1 -0
- package/dist/utils/security.js +358 -0
- package/dist/utils/security.js.map +1 -0
- package/dist/utils/simple-response.d.ts +75 -0
- package/dist/utils/simple-response.d.ts.map +1 -0
- package/dist/utils/simple-response.js +208 -0
- package/dist/utils/simple-response.js.map +1 -0
- package/dist/utils/storage-errors.d.ts +9 -0
- package/dist/utils/storage-errors.d.ts.map +1 -0
- package/dist/utils/storage-errors.js +20 -0
- package/dist/utils/storage-errors.js.map +1 -0
- package/dist/utils/unicode-fix.d.ts +19 -0
- package/dist/utils/unicode-fix.d.ts.map +1 -0
- package/dist/utils/unicode-fix.js +70 -0
- package/dist/utils/unicode-fix.js.map +1 -0
- package/dist/utils/validation.d.ts +103 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/validation.js +729 -0
- package/dist/utils/validation.js.map +1 -0
- package/package.json +148 -0
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Performance monitoring and metrics collection for bulk operations
|
|
4
|
+
* Tracks throughput, latency, and efficiency metrics
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.recordPerformanceMetrics = exports.monitorBulkOperation = exports.performanceMonitor = exports.PerformanceMonitor = void 0;
|
|
8
|
+
const logger_1 = require("../logger");
|
|
9
|
+
class PerformanceMonitor {
|
|
10
|
+
operations = [];
|
|
11
|
+
alerts = [];
|
|
12
|
+
activeOperations = new Map();
|
|
13
|
+
// Configurable thresholds
|
|
14
|
+
thresholds = {
|
|
15
|
+
highLatencyMs: 5000, // 5 seconds
|
|
16
|
+
lowThroughputItemsPerSec: 2, // 2 items per second
|
|
17
|
+
highFailureRatePercent: 20, // 20% failure rate
|
|
18
|
+
lowCacheHitRatePercent: 30, // 30% cache hit rate
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Start monitoring an operation
|
|
22
|
+
*/
|
|
23
|
+
startOperation(operationId, operationType, itemCount, concurrencyLevel = 1, metadata) {
|
|
24
|
+
const metrics = {
|
|
25
|
+
operationType,
|
|
26
|
+
startTime: Date.now(),
|
|
27
|
+
itemCount,
|
|
28
|
+
successCount: 0,
|
|
29
|
+
failureCount: 0,
|
|
30
|
+
apiCallCount: 0,
|
|
31
|
+
cacheHits: 0,
|
|
32
|
+
cacheMisses: 0,
|
|
33
|
+
concurrencyLevel,
|
|
34
|
+
metadata: metadata || {},
|
|
35
|
+
};
|
|
36
|
+
this.activeOperations.set(operationId, metrics);
|
|
37
|
+
logger_1.logger.debug('Performance monitoring started', {
|
|
38
|
+
operationId,
|
|
39
|
+
operationType,
|
|
40
|
+
itemCount,
|
|
41
|
+
concurrencyLevel,
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Update operation progress
|
|
46
|
+
*/
|
|
47
|
+
updateOperation(operationId, updates) {
|
|
48
|
+
const operation = this.activeOperations.get(operationId);
|
|
49
|
+
if (!operation) {
|
|
50
|
+
logger_1.logger.warn('Attempted to update unknown operation', { operationId });
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
// Type-safe assignment with validation
|
|
54
|
+
if (updates.successCount !== undefined)
|
|
55
|
+
operation.successCount = updates.successCount;
|
|
56
|
+
if (updates.failureCount !== undefined)
|
|
57
|
+
operation.failureCount = updates.failureCount;
|
|
58
|
+
if (updates.apiCallCount !== undefined)
|
|
59
|
+
operation.apiCallCount = updates.apiCallCount;
|
|
60
|
+
if (updates.cacheHits !== undefined)
|
|
61
|
+
operation.cacheHits = updates.cacheHits;
|
|
62
|
+
if (updates.cacheMisses !== undefined)
|
|
63
|
+
operation.cacheMisses = updates.cacheMisses;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Increment API call count for an operation
|
|
67
|
+
*/
|
|
68
|
+
recordApiCall(operationId, count = 1) {
|
|
69
|
+
const operation = this.activeOperations.get(operationId);
|
|
70
|
+
if (operation) {
|
|
71
|
+
operation.apiCallCount += count;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Record cache hit for an operation
|
|
76
|
+
*/
|
|
77
|
+
recordCacheHit(operationId, count = 1) {
|
|
78
|
+
const operation = this.activeOperations.get(operationId);
|
|
79
|
+
if (operation) {
|
|
80
|
+
operation.cacheHits += count;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Record cache miss for an operation
|
|
85
|
+
*/
|
|
86
|
+
recordCacheMiss(operationId, count = 1) {
|
|
87
|
+
const operation = this.activeOperations.get(operationId);
|
|
88
|
+
if (operation) {
|
|
89
|
+
operation.cacheMisses += count;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Complete operation monitoring and analyze performance
|
|
94
|
+
*/
|
|
95
|
+
completeOperation(operationId) {
|
|
96
|
+
const operation = this.activeOperations.get(operationId);
|
|
97
|
+
if (!operation) {
|
|
98
|
+
logger_1.logger.warn('Attempted to complete unknown operation', { operationId });
|
|
99
|
+
return undefined;
|
|
100
|
+
}
|
|
101
|
+
operation.endTime = Date.now();
|
|
102
|
+
operation.duration = operation.endTime - operation.startTime;
|
|
103
|
+
// Move to completed operations
|
|
104
|
+
this.operations.push(operation);
|
|
105
|
+
this.activeOperations.delete(operationId);
|
|
106
|
+
// Analyze performance and generate alerts if needed
|
|
107
|
+
this.analyzePerformance(operation);
|
|
108
|
+
// Keep only last 1000 operations to prevent memory growth
|
|
109
|
+
if (this.operations.length > 1000) {
|
|
110
|
+
this.operations = this.operations.slice(-1000);
|
|
111
|
+
}
|
|
112
|
+
logger_1.logger.debug('Performance monitoring completed', {
|
|
113
|
+
operationId,
|
|
114
|
+
operationType: operation.operationType,
|
|
115
|
+
duration: operation.duration,
|
|
116
|
+
itemCount: operation.itemCount,
|
|
117
|
+
apiCalls: operation.apiCallCount,
|
|
118
|
+
successRate: operation.itemCount > 0 ? (operation.successCount / operation.itemCount) * 100 : 0,
|
|
119
|
+
});
|
|
120
|
+
return operation;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Get comprehensive performance statistics
|
|
124
|
+
*/
|
|
125
|
+
getStats() {
|
|
126
|
+
const totalOperations = this.operations.length;
|
|
127
|
+
if (totalOperations === 0) {
|
|
128
|
+
return this.getEmptyStats();
|
|
129
|
+
}
|
|
130
|
+
const totals = this.operations.reduce((acc, op) => ({
|
|
131
|
+
duration: acc.duration + (op.duration || 0),
|
|
132
|
+
items: acc.items + op.itemCount,
|
|
133
|
+
apiCalls: acc.apiCalls + op.apiCallCount,
|
|
134
|
+
cacheHits: acc.cacheHits + op.cacheHits,
|
|
135
|
+
cacheMisses: acc.cacheMisses + op.cacheMisses,
|
|
136
|
+
successes: acc.successes + op.successCount,
|
|
137
|
+
failures: acc.failures + op.failureCount,
|
|
138
|
+
}), { duration: 0, items: 0, apiCalls: 0, cacheHits: 0, cacheMisses: 0, successes: 0, failures: 0 });
|
|
139
|
+
const operationsByType = this.operations.reduce((acc, op) => {
|
|
140
|
+
acc[op.operationType] = (acc[op.operationType] || 0) + 1;
|
|
141
|
+
return acc;
|
|
142
|
+
}, {});
|
|
143
|
+
const peakConcurrency = Math.max(...this.operations.map(op => op.concurrencyLevel));
|
|
144
|
+
const last10Operations = this.operations.slice(-10);
|
|
145
|
+
const last10Duration = last10Operations.reduce((sum, op) => sum + (op.duration || 0), 0);
|
|
146
|
+
const last10Items = last10Operations.reduce((sum, op) => sum + op.itemCount, 0);
|
|
147
|
+
return {
|
|
148
|
+
totalOperations,
|
|
149
|
+
totalDuration: totals.duration,
|
|
150
|
+
totalItems: totals.items,
|
|
151
|
+
totalApiCalls: totals.apiCalls,
|
|
152
|
+
totalCacheHits: totals.cacheHits,
|
|
153
|
+
totalCacheMisses: totals.cacheMisses,
|
|
154
|
+
averageOperationDuration: totals.duration / totalOperations,
|
|
155
|
+
averageItemsPerSecond: totals.duration > 0 ? (totals.items / (totals.duration / 1000)) : 0,
|
|
156
|
+
averageApiCallsPerOperation: totals.apiCalls / totalOperations,
|
|
157
|
+
cacheHitRatio: (totals.cacheHits + totals.cacheMisses) > 0
|
|
158
|
+
? totals.cacheHits / (totals.cacheHits + totals.cacheMisses)
|
|
159
|
+
: 0,
|
|
160
|
+
operationSuccessRate: totals.items > 0 ? (totals.successes / totals.items) : 0,
|
|
161
|
+
peakConcurrency,
|
|
162
|
+
operationsByType,
|
|
163
|
+
recentPerformance: {
|
|
164
|
+
last10Operations,
|
|
165
|
+
averageDurationLast10: last10Operations.length > 0 ? last10Duration / last10Operations.length : 0,
|
|
166
|
+
throughputLast10: last10Duration > 0 ? (last10Items / (last10Duration / 1000)) : 0,
|
|
167
|
+
},
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Get recent performance alerts
|
|
172
|
+
*/
|
|
173
|
+
getAlerts(maxAge) {
|
|
174
|
+
if (!maxAge) {
|
|
175
|
+
return [...this.alerts];
|
|
176
|
+
}
|
|
177
|
+
const cutoff = Date.now() - maxAge;
|
|
178
|
+
return this.alerts.filter(alert => alert.timestamp > cutoff);
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Clear all alerts
|
|
182
|
+
*/
|
|
183
|
+
clearAlerts() {
|
|
184
|
+
this.alerts = [];
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Export performance data for analysis
|
|
188
|
+
*/
|
|
189
|
+
exportData() {
|
|
190
|
+
return {
|
|
191
|
+
operations: [...this.operations],
|
|
192
|
+
alerts: [...this.alerts],
|
|
193
|
+
stats: this.getStats(),
|
|
194
|
+
exportTimestamp: Date.now(),
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Reset all performance data
|
|
199
|
+
*/
|
|
200
|
+
reset() {
|
|
201
|
+
this.operations = [];
|
|
202
|
+
this.alerts = [];
|
|
203
|
+
this.activeOperations.clear();
|
|
204
|
+
logger_1.logger.info('Performance monitor reset');
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Analyze operation performance and generate alerts
|
|
208
|
+
*/
|
|
209
|
+
analyzePerformance(operation) {
|
|
210
|
+
if (!operation.duration)
|
|
211
|
+
return;
|
|
212
|
+
// Check for high latency
|
|
213
|
+
if (operation.duration > this.thresholds.highLatencyMs) {
|
|
214
|
+
this.addAlert('high_latency', 'critical', `Operation took ${operation.duration}ms (threshold: ${this.thresholds.highLatencyMs}ms)`, operation);
|
|
215
|
+
}
|
|
216
|
+
// Check for low throughput
|
|
217
|
+
const throughput = operation.duration > 0 ? (operation.itemCount / (operation.duration / 1000)) : 0;
|
|
218
|
+
if (throughput < this.thresholds.lowThroughputItemsPerSec && operation.itemCount > 5) {
|
|
219
|
+
this.addAlert('low_throughput', 'warning', `Low throughput: ${throughput.toFixed(2)} items/sec (threshold: ${this.thresholds.lowThroughputItemsPerSec})`, operation);
|
|
220
|
+
}
|
|
221
|
+
// Check for high failure rate
|
|
222
|
+
const failureRate = operation.itemCount > 0 ? (operation.failureCount / operation.itemCount) * 100 : 0;
|
|
223
|
+
if (failureRate > this.thresholds.highFailureRatePercent && operation.itemCount > 1) {
|
|
224
|
+
this.addAlert('high_failure_rate', 'critical', `High failure rate: ${failureRate.toFixed(1)}% (threshold: ${this.thresholds.highFailureRatePercent}%)`, operation);
|
|
225
|
+
}
|
|
226
|
+
// Check for cache inefficiency
|
|
227
|
+
const totalCacheOps = operation.cacheHits + operation.cacheMisses;
|
|
228
|
+
const cacheHitRate = totalCacheOps > 0 ? (operation.cacheHits / totalCacheOps) * 100 : 100;
|
|
229
|
+
if (cacheHitRate < this.thresholds.lowCacheHitRatePercent && totalCacheOps > 5) {
|
|
230
|
+
this.addAlert('cache_inefficiency', 'warning', `Low cache hit rate: ${cacheHitRate.toFixed(1)}% (threshold: ${this.thresholds.lowCacheHitRatePercent}%)`, operation);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Add performance alert
|
|
235
|
+
*/
|
|
236
|
+
addAlert(type, severity, message, operation) {
|
|
237
|
+
const alert = {
|
|
238
|
+
type,
|
|
239
|
+
severity,
|
|
240
|
+
message,
|
|
241
|
+
metrics: {
|
|
242
|
+
operationType: operation.operationType,
|
|
243
|
+
duration: operation.duration || 0,
|
|
244
|
+
itemCount: operation.itemCount,
|
|
245
|
+
apiCallCount: operation.apiCallCount,
|
|
246
|
+
cacheHits: operation.cacheHits,
|
|
247
|
+
cacheMisses: operation.cacheMisses,
|
|
248
|
+
},
|
|
249
|
+
timestamp: Date.now(),
|
|
250
|
+
};
|
|
251
|
+
this.alerts.push(alert);
|
|
252
|
+
// Keep only last 100 alerts
|
|
253
|
+
if (this.alerts.length > 100) {
|
|
254
|
+
this.alerts = this.alerts.slice(-100);
|
|
255
|
+
}
|
|
256
|
+
logger_1.logger.warn('Performance alert generated', alert);
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Get empty stats structure
|
|
260
|
+
*/
|
|
261
|
+
getEmptyStats() {
|
|
262
|
+
return {
|
|
263
|
+
totalOperations: 0,
|
|
264
|
+
totalDuration: 0,
|
|
265
|
+
totalItems: 0,
|
|
266
|
+
totalApiCalls: 0,
|
|
267
|
+
totalCacheHits: 0,
|
|
268
|
+
totalCacheMisses: 0,
|
|
269
|
+
averageOperationDuration: 0,
|
|
270
|
+
averageItemsPerSecond: 0,
|
|
271
|
+
averageApiCallsPerOperation: 0,
|
|
272
|
+
cacheHitRatio: 0,
|
|
273
|
+
operationSuccessRate: 0,
|
|
274
|
+
peakConcurrency: 0,
|
|
275
|
+
operationsByType: {},
|
|
276
|
+
recentPerformance: {
|
|
277
|
+
last10Operations: [],
|
|
278
|
+
averageDurationLast10: 0,
|
|
279
|
+
throughputLast10: 0,
|
|
280
|
+
},
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
exports.PerformanceMonitor = PerformanceMonitor;
|
|
285
|
+
// Global performance monitor instance
|
|
286
|
+
exports.performanceMonitor = new PerformanceMonitor();
|
|
287
|
+
// Helper functions for common monitoring patterns
|
|
288
|
+
const monitorBulkOperation = (operationType, itemCount, operation, concurrencyLevel) => {
|
|
289
|
+
const operationId = `${operationType}-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
|
|
290
|
+
exports.performanceMonitor.startOperation(operationId, operationType, itemCount, concurrencyLevel);
|
|
291
|
+
return operation()
|
|
292
|
+
.then(result => {
|
|
293
|
+
exports.performanceMonitor.completeOperation(operationId);
|
|
294
|
+
return result;
|
|
295
|
+
})
|
|
296
|
+
.catch(error => {
|
|
297
|
+
exports.performanceMonitor.updateOperation(operationId, { failureCount: itemCount });
|
|
298
|
+
exports.performanceMonitor.completeOperation(operationId);
|
|
299
|
+
throw error;
|
|
300
|
+
});
|
|
301
|
+
};
|
|
302
|
+
exports.monitorBulkOperation = monitorBulkOperation;
|
|
303
|
+
const recordPerformanceMetrics = (operationId, metrics) => {
|
|
304
|
+
exports.performanceMonitor.updateOperation(operationId, metrics);
|
|
305
|
+
};
|
|
306
|
+
exports.recordPerformanceMetrics = recordPerformanceMetrics;
|
|
307
|
+
//# sourceMappingURL=performance-monitor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"performance-monitor.js","sourceRoot":"","sources":["../../../src/utils/performance/performance-monitor.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,sCAAmC;AA8CnC,MAAa,kBAAkB;IACrB,UAAU,GAAuB,EAAE,CAAC;IACpC,MAAM,GAAuB,EAAE,CAAC;IAChC,gBAAgB,GAAG,IAAI,GAAG,EAA4B,CAAC;IAE/D,0BAA0B;IACT,UAAU,GAAG;QAC5B,aAAa,EAAE,IAAI,EAAS,YAAY;QACxC,wBAAwB,EAAE,CAAC,EAAE,qBAAqB;QAClD,sBAAsB,EAAE,EAAE,EAAG,mBAAmB;QAChD,sBAAsB,EAAE,EAAE,EAAG,qBAAqB;KACnD,CAAC;IAEF;;OAEG;IACH,cAAc,CACZ,WAAmB,EACnB,aAAqB,EACrB,SAAiB,EACjB,mBAA2B,CAAC,EAC5B,QAAkC;QAElC,MAAM,OAAO,GAAqB;YAChC,aAAa;YACb,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;YACrB,SAAS;YACT,YAAY,EAAE,CAAC;YACf,YAAY,EAAE,CAAC;YACf,YAAY,EAAE,CAAC;YACf,SAAS,EAAE,CAAC;YACZ,WAAW,EAAE,CAAC;YACd,gBAAgB;YAChB,QAAQ,EAAE,QAAQ,IAAI,EAAE;SACzB,CAAC;QAEF,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAEhD,eAAM,CAAC,KAAK,CAAC,gCAAgC,EAAE;YAC7C,WAAW;YACX,aAAa;YACb,SAAS;YACT,gBAAgB;SACjB,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,eAAe,CACb,WAAmB,EACnB,OAAwH;QAExH,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB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AAQ,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;IAEhG,0BAAkB,CAAC,cAAc,CAAC,WAAW,EAAE,aAAa,EAAE,SAAS,EAAE,gBAAgB,CAAC,CAAC;IAE3F,OAAO,SAAS,EAAE;SACf,IAAI,CAAC,MAAM,CAAC,EAAE;QACb,0BAAkB,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;QAClD,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC;SACD,KAAK,CAAC,KAAK,CAAC,EAAE;QACb,0BAAkB,CAAC,eAAe,CAAC,WAAW,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC,CAAC;QAC7E,0BAAkB,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;QAClD,MAAM,KAAK,CAAC;IACd,CAAC,CAAC,CAAC;AACP,CAAC,CAAC;AApBW,QAAA,oBAAoB,wBAoB/B;AAEK,MAAM,wBAAwB,GAAG,CACtC,WAAmB,EACnB,OAAwH,EAClH,EAAE;IACR,0BAAkB,CAAC,eAAe,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AAC3D,CAAC,CAAC;AALW,QAAA,wBAAwB,4BAKnC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Simple Response Factory
|
|
3
|
+
* Replaces 2,925-line AORP system with clean, direct response formatting
|
|
4
|
+
*/
|
|
5
|
+
import { type SimpleResponse } from './simple-response';
|
|
6
|
+
import type { ResponseMetadata } from '../types/responses';
|
|
7
|
+
import type { ResponseData } from '../types';
|
|
8
|
+
/**
|
|
9
|
+
* Simple response metadata
|
|
10
|
+
*/
|
|
11
|
+
export interface SimpleResponseMetadata {
|
|
12
|
+
/** Processing information */
|
|
13
|
+
processing?: {
|
|
14
|
+
/** Processing time in ms */
|
|
15
|
+
processingTimeMs?: number;
|
|
16
|
+
/** Operation context */
|
|
17
|
+
operation?: string;
|
|
18
|
+
};
|
|
19
|
+
/** Timestamp */
|
|
20
|
+
timestamp?: string;
|
|
21
|
+
/** Success flag */
|
|
22
|
+
success?: boolean;
|
|
23
|
+
/** Error information */
|
|
24
|
+
error?: {
|
|
25
|
+
code: string;
|
|
26
|
+
message: string;
|
|
27
|
+
};
|
|
28
|
+
/** Session ID */
|
|
29
|
+
sessionId?: string;
|
|
30
|
+
/** Additional metadata */
|
|
31
|
+
[key: string]: unknown;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Create a simple response (replaces createAorpResponse)
|
|
35
|
+
* Direct replacement for AORP factory functions
|
|
36
|
+
*/
|
|
37
|
+
export declare function createSimpleResponse(operation: string, message: string, data?: ResponseData, options?: {
|
|
38
|
+
success?: boolean;
|
|
39
|
+
metadata?: ResponseMetadata;
|
|
40
|
+
processingTimeMs?: number;
|
|
41
|
+
}): SimpleResponse;
|
|
42
|
+
/**
|
|
43
|
+
* Format response for MCP (replaces AORP formatting)
|
|
44
|
+
*/
|
|
45
|
+
export declare function formatResponseForMcp(response: SimpleResponse): string;
|
|
46
|
+
/**
|
|
47
|
+
* Create task response (replaces createTaskResponse)
|
|
48
|
+
* Now handles flexible data for backward compatibility
|
|
49
|
+
*/
|
|
50
|
+
export declare function createTaskResponse(operation: string, message: string, data: {
|
|
51
|
+
tasks?: ResponseData[];
|
|
52
|
+
} | ResponseData, metadata?: ResponseMetadata, sessionId?: string): SimpleResponse;
|
|
53
|
+
/**
|
|
54
|
+
* Create error response (replaces createAorpErrorResponse)
|
|
55
|
+
*/
|
|
56
|
+
export declare function createSimpleErrorResponse(operation: string, message: string, errorCode?: string, metadata?: ResponseMetadata): SimpleResponse;
|
|
57
|
+
export { createTaskResponse as createStandardResponse };
|
|
58
|
+
export { createTaskResponse as createTaskAorpResponse };
|
|
59
|
+
export { createSimpleErrorResponse as createAorpErrorResponse };
|
|
60
|
+
export { formatResponseForMcp as formatAorpAsMarkdown };
|
|
61
|
+
export { createSimpleResponse as createAorpResponse };
|
|
62
|
+
export type { SimpleResponse } from './simple-response';
|
|
63
|
+
/**
|
|
64
|
+
* Create AORP response from data (compatibility function)
|
|
65
|
+
* Simple replacement for createAorpFromData
|
|
66
|
+
*/
|
|
67
|
+
export declare function createAorpFromData(operation: string, message: string, success?: boolean, details?: string): SimpleResponse;
|
|
68
|
+
export interface AorpBuilderConfig {
|
|
69
|
+
confidenceMethod?: string;
|
|
70
|
+
enableCaching?: boolean;
|
|
71
|
+
maxCacheSize?: number;
|
|
72
|
+
[key: string]: unknown;
|
|
73
|
+
}
|
|
74
|
+
export type AorpVerbosityLevel = 'minimal' | 'standard' | 'detailed';
|
|
75
|
+
export interface ComplexityFactors {
|
|
76
|
+
dataComplexity: number;
|
|
77
|
+
nestingLevel: number;
|
|
78
|
+
itemCount: number;
|
|
79
|
+
hasNestedArrays: boolean;
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=response-factory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response-factory.d.ts","sourceRoot":"","sources":["../../src/utils/response-factory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAA8C,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACpG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,6BAA6B;IAC7B,UAAU,CAAC,EAAE;QACX,4BAA4B;QAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,wBAAwB;QACxB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,gBAAgB;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,wBAAwB;IACxB,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,OAA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ExD;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,OAAc,EACvB,OAAO,CAAC,EAAE,MAAM,GACf,cAAc,CAEhB;AAGD,MAAM,WAAW,iBAAiB;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;AAErE,MAAM,WAAW,iBAAiB;IAChC,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;CAC1B"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Simple Response Factory
|
|
4
|
+
* Replaces 2,925-line AORP system with clean, direct response formatting
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.createSimpleResponse = createSimpleResponse;
|
|
8
|
+
exports.createAorpResponse = createSimpleResponse;
|
|
9
|
+
exports.formatResponseForMcp = formatResponseForMcp;
|
|
10
|
+
exports.formatAorpAsMarkdown = formatResponseForMcp;
|
|
11
|
+
exports.createTaskResponse = createTaskResponse;
|
|
12
|
+
exports.createStandardResponse = createTaskResponse;
|
|
13
|
+
exports.createTaskAorpResponse = createTaskResponse;
|
|
14
|
+
exports.createSimpleErrorResponse = createSimpleErrorResponse;
|
|
15
|
+
exports.createAorpErrorResponse = createSimpleErrorResponse;
|
|
16
|
+
exports.createAorpFromData = createAorpFromData;
|
|
17
|
+
const simple_response_1 = require("./simple-response");
|
|
18
|
+
/**
|
|
19
|
+
* Create a simple response (replaces createAorpResponse)
|
|
20
|
+
* Direct replacement for AORP factory functions
|
|
21
|
+
*/
|
|
22
|
+
function createSimpleResponse(operation, message, data, options) {
|
|
23
|
+
const { success = true, metadata } = options || {};
|
|
24
|
+
if (success) {
|
|
25
|
+
return (0, simple_response_1.createSuccessResponse)(operation, message, data, {
|
|
26
|
+
timestamp: new Date().toISOString(),
|
|
27
|
+
success,
|
|
28
|
+
operation,
|
|
29
|
+
...metadata,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
return (0, simple_response_1.createErrorResponse)(operation, message, 'OPERATION_FAILED', {
|
|
34
|
+
timestamp: new Date().toISOString(),
|
|
35
|
+
success: false,
|
|
36
|
+
operation,
|
|
37
|
+
...metadata,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Format response for MCP (replaces AORP formatting)
|
|
43
|
+
*/
|
|
44
|
+
function formatResponseForMcp(response) {
|
|
45
|
+
return response.content;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Create task response (replaces createTaskResponse)
|
|
49
|
+
* Now handles flexible data for backward compatibility
|
|
50
|
+
*/
|
|
51
|
+
function createTaskResponse(operation, message, data, metadata, sessionId) {
|
|
52
|
+
// Handle both task data structure and arbitrary data objects
|
|
53
|
+
const responseData = data && typeof data === 'object' && 'tasks' in data ? data.tasks : data;
|
|
54
|
+
// Respect success flag from metadata, default to true
|
|
55
|
+
const successFlag = metadata?.success !== undefined ? metadata.success : true;
|
|
56
|
+
const responseMetadata = {
|
|
57
|
+
timestamp: new Date().toISOString(),
|
|
58
|
+
success: successFlag,
|
|
59
|
+
operation,
|
|
60
|
+
...metadata,
|
|
61
|
+
};
|
|
62
|
+
if (sessionId !== undefined) {
|
|
63
|
+
responseMetadata.sessionId = sessionId;
|
|
64
|
+
}
|
|
65
|
+
// Use createErrorResponse for failed operations, createSuccessResponse for successful ones
|
|
66
|
+
if (successFlag) {
|
|
67
|
+
return (0, simple_response_1.createSuccessResponse)(operation, message, responseData, responseMetadata);
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
return (0, simple_response_1.createErrorResponse)(operation, message, 'OPERATION_FAILED', responseMetadata);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Create error response (replaces createAorpErrorResponse)
|
|
75
|
+
*/
|
|
76
|
+
function createSimpleErrorResponse(operation, message, errorCode = 'UNKNOWN_ERROR', metadata) {
|
|
77
|
+
return (0, simple_response_1.createErrorResponse)(operation, message, errorCode, metadata);
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Create AORP response from data (compatibility function)
|
|
81
|
+
* Simple replacement for createAorpFromData
|
|
82
|
+
*/
|
|
83
|
+
function createAorpFromData(operation, message, success = true, details) {
|
|
84
|
+
return createSimpleResponse(operation, details || message, undefined, { success });
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=response-factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response-factory.js","sourceRoot":"","sources":["../../src/utils/response-factory.ts"],"names":[],"mappings":";AAAA;;;GAGG;;AAoCH,oDA2BC;AAgEgC,kDAAkB;AA3DnD,oDAEC;AAsDgC,oDAAoB;AAhDrD,gDA8BC;AAe8B,oDAAsB;AACtB,oDAAsB;AAXrD,8DAOC;AAKqC,4DAAuB;AAa7D,gDAOC;AA7ID,uDAAoG;AA8BpG;;;GAGG;AACH,SAAgB,oBAAoB,CAClC,SAAiB,EACjB,OAAe,EACf,IAAmB,EACnB,OAIC;IAED,MAAM,EAAE,OAAO,GAAG,IAAI,EAAE,QAAQ,EAAE,GAAG,OAAO,IAAI,EAAE,CAAC;IAEnD,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,IAAA,uCAAqB,EAAC,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE;YACrD,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;YACnC,OAAO;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S,EAAE,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,CAAC,CAAC;IACvF,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAgB,yBAAyB,CACvC,SAAiB,EACjB,OAAe,EACf,YAAoB,eAAe,EACnC,QAA2B;IAE3B,OAAO,IAAA,qCAAmB,EAAC,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;AACtE,CAAC;AAcD;;;GAGG;AACH,SAAgB,kBAAkB,CAChC,SAAiB,EACjB,OAAe,EACf,UAAmB,IAAI,EACvB,OAAgB;IAEhB,OAAO,oBAAoB,CAAC,SAAS,EAAE,OAAO,IAAI,OAAO,EAAE,SAAS,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;AACrF,CAAC"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Production-Ready Retry with Opossum Circuit Breaker
|
|
3
|
+
* Replaces 374-line custom implementation with battle-tested patterns
|
|
4
|
+
*/
|
|
5
|
+
import CircuitBreaker from 'opossum';
|
|
6
|
+
/**
|
|
7
|
+
* Simple circuit breaker registry for tracking and managing circuit breakers
|
|
8
|
+
*/
|
|
9
|
+
declare class CircuitBreakerRegistry {
|
|
10
|
+
private breakers;
|
|
11
|
+
register(name: string, breaker: CircuitBreaker): void;
|
|
12
|
+
get(name: string): CircuitBreaker | undefined;
|
|
13
|
+
resetAll(): Promise<void>;
|
|
14
|
+
/** Remove all registered breakers (for tests). */
|
|
15
|
+
clear(): void;
|
|
16
|
+
getAllStats(): Record<string, unknown>;
|
|
17
|
+
getAllStatsSync(): Record<string, unknown>;
|
|
18
|
+
}
|
|
19
|
+
export declare const circuitBreakerRegistry: CircuitBreakerRegistry;
|
|
20
|
+
/**
|
|
21
|
+
* Interface for errors that have code properties (like Node.js system errors)
|
|
22
|
+
*/
|
|
23
|
+
interface ErrorWithCode extends Error {
|
|
24
|
+
code?: string;
|
|
25
|
+
status?: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Simple retry configuration using opossum's built-in capabilities
|
|
29
|
+
*/
|
|
30
|
+
export interface RetryOptions {
|
|
31
|
+
maxRetries?: number;
|
|
32
|
+
timeout?: number;
|
|
33
|
+
resetTimeout?: number;
|
|
34
|
+
errorThresholdPercentage?: number;
|
|
35
|
+
volumeThreshold?: number;
|
|
36
|
+
shouldRetry?: (error: Error | ErrorWithCode) => boolean;
|
|
37
|
+
initialDelay?: number;
|
|
38
|
+
backoffFactor?: number;
|
|
39
|
+
maxDelay?: number;
|
|
40
|
+
/** When false, run the operation directly without a circuit breaker. Default true. */
|
|
41
|
+
enableCircuitBreaker?: boolean;
|
|
42
|
+
/** Named circuit breaker key. Defaults to a unique per-call name. */
|
|
43
|
+
circuitBreakerName?: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Simple circuit breaker factory using opossum directly.
|
|
47
|
+
* Named breakers are reused. Call fire(operation) to run a fresh closure,
|
|
48
|
+
* or fire() to run the operation provided at creation time.
|
|
49
|
+
*/
|
|
50
|
+
export declare function createCircuitBreaker<T>(operation: () => Promise<T>, name: string, options?: RetryOptions): CircuitBreaker;
|
|
51
|
+
/**
|
|
52
|
+
* Execute operation with automatic retry and circuit breaking
|
|
53
|
+
*/
|
|
54
|
+
export declare function withRetry<T>(operation: () => Promise<T>, options?: RetryOptions): Promise<T>;
|
|
55
|
+
/**
|
|
56
|
+
* Execute operation with named circuit breaker for stats
|
|
57
|
+
*/
|
|
58
|
+
export declare function withNamedRetry<T>(operation: () => Promise<T>, name: string, options?: RetryOptions): Promise<T>;
|
|
59
|
+
/**
|
|
60
|
+
* Alias for withNamedRetry for backward compatibility
|
|
61
|
+
*/
|
|
62
|
+
export declare const withCircuitBreaker: typeof withNamedRetry;
|
|
63
|
+
/**
|
|
64
|
+
* Get circuit breaker health stats
|
|
65
|
+
*/
|
|
66
|
+
export declare function getHealthStats(breaker: CircuitBreaker): CircuitBreaker.Stats;
|
|
67
|
+
/**
|
|
68
|
+
* Check if error is retryable (basic implementation)
|
|
69
|
+
*/
|
|
70
|
+
export declare function isRetryableError(error: unknown): error is ErrorWithCode;
|
|
71
|
+
/**
|
|
72
|
+
* Check if error is transient for circuit breaker purposes
|
|
73
|
+
*/
|
|
74
|
+
export declare function isTransientError(error: unknown): error is ErrorWithCode;
|
|
75
|
+
/**
|
|
76
|
+
* Predefined retry configurations for different operation types
|
|
77
|
+
*/
|
|
78
|
+
export declare const RETRY_CONFIG: {
|
|
79
|
+
readonly AUTH_ERRORS: {
|
|
80
|
+
readonly maxRetries: 3;
|
|
81
|
+
readonly initialDelay: 1000;
|
|
82
|
+
readonly maxDelay: 10000;
|
|
83
|
+
readonly backoffFactor: 2;
|
|
84
|
+
readonly enableCircuitBreaker: true;
|
|
85
|
+
readonly circuitBreakerName: "vikunja-auth-connect";
|
|
86
|
+
};
|
|
87
|
+
readonly NETWORK_ERRORS: {
|
|
88
|
+
readonly maxRetries: 5;
|
|
89
|
+
readonly initialDelay: 500;
|
|
90
|
+
readonly maxDelay: 30000;
|
|
91
|
+
readonly backoffFactor: 1.5;
|
|
92
|
+
readonly enableCircuitBreaker: true;
|
|
93
|
+
readonly circuitBreakerName: "vikunja-api-operations";
|
|
94
|
+
};
|
|
95
|
+
readonly TASK_OPERATIONS: {
|
|
96
|
+
readonly maxRetries: 3;
|
|
97
|
+
readonly initialDelay: 1000;
|
|
98
|
+
readonly maxDelay: 15000;
|
|
99
|
+
readonly backoffFactor: 2;
|
|
100
|
+
readonly enableCircuitBreaker: true;
|
|
101
|
+
readonly circuitBreakerName: "vikunja-task-create";
|
|
102
|
+
};
|
|
103
|
+
readonly BULK_OPERATIONS: {
|
|
104
|
+
readonly maxRetries: 2;
|
|
105
|
+
readonly initialDelay: 2000;
|
|
106
|
+
readonly maxDelay: 20000;
|
|
107
|
+
readonly backoffFactor: 1.5;
|
|
108
|
+
readonly enableCircuitBreaker: true;
|
|
109
|
+
readonly circuitBreakerName: "vikunja-bulk-operations";
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* Circuit breaker name constants for consistent naming across the application
|
|
114
|
+
*/
|
|
115
|
+
export declare const CIRCUIT_BREAKER_NAMES: {
|
|
116
|
+
readonly AUTH_CONNECT: "vikunja-auth-connect";
|
|
117
|
+
readonly AUTH_REFRESH: "vikunja-auth-refresh";
|
|
118
|
+
readonly AUTH_STATUS: "vikunja-auth-status";
|
|
119
|
+
readonly API_OPERATIONS: "vikunja-api-operations";
|
|
120
|
+
readonly CLIENT_OPERATIONS: "vikunja-client-operations";
|
|
121
|
+
readonly FILTER_OPERATIONS: "vikunja-filter-operations";
|
|
122
|
+
readonly TASK_CREATE: "vikunja-task-create";
|
|
123
|
+
readonly TASK_UPDATE: "vikunja-task-update";
|
|
124
|
+
readonly TASK_DELETE: "vikunja-task-delete";
|
|
125
|
+
readonly TASK_GET: "vikunja-task-get";
|
|
126
|
+
readonly TASK_LIST: "vikunja-task-list";
|
|
127
|
+
readonly TASK_RELATIONS: "vikunja-task-relations";
|
|
128
|
+
readonly TASK_ASSIGNEES: "vikunja-task-assignees";
|
|
129
|
+
readonly TASK_LABELS: "vikunja-task-labels";
|
|
130
|
+
readonly PROJECT_CRUD: "vikunja-project-crud";
|
|
131
|
+
readonly PROJECT_HIERARCHY: "vikunja-project-hierarchy";
|
|
132
|
+
readonly PROJECT_SHARING: "vikunja-project-sharing";
|
|
133
|
+
readonly BULK_OPERATIONS: "vikunja-bulk-operations";
|
|
134
|
+
readonly BULK_IMPORT: "vikunja-bulk-import";
|
|
135
|
+
readonly BULK_EXPORT: "vikunja-bulk-export";
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Execute task operations with task-specific circuit breaker
|
|
139
|
+
*/
|
|
140
|
+
export declare function withTaskRetry<T>(operation: () => Promise<T>, operationType: 'create' | 'update' | 'delete' | 'get', options?: RetryOptions): Promise<T>;
|
|
141
|
+
/**
|
|
142
|
+
* Execute bulk operations with bulk-specific circuit breaker
|
|
143
|
+
*/
|
|
144
|
+
export declare function withBulkRetry<T>(operation: () => Promise<T>, operationType: 'import' | 'export', options?: RetryOptions): Promise<T>;
|
|
145
|
+
export {};
|
|
146
|
+
//# sourceMappingURL=retry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retry.d.ts","sourceRoot":"","sources":["../../src/utils/retry.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,cAAc,MAAM,SAAS,CAAC;AAUrC;;GAEG;AACH,cAAM,sBAAsB;IAC1B,OAAO,CAAC,QAAQ,CAAqC;IAErD,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,IAAI;IAIrD,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS;IAIvC,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAY/B,kDAAkD;IAClD,KAAK,IAAI,IAAI;IAYb,WAAW,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAQtC,eAAe,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAG3C;AAED,eAAO,MAAM,sBAAsB,wBAA+B,CAAC;AAEnE;;GAEG;AACH,UAAU,aAAc,SAAQ,KAAK;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,GAAG,aAAa,KAAK,OAAO,CAAC;IACxD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,M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