@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,249 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Simplified bulk operations for tasks (~250 lines)
|
|
4
|
+
* Uses BulkOperationValidator + shared batch processor helpers.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.resolveBulkUpdateValue = resolveBulkUpdateValue;
|
|
8
|
+
exports.bulkUpdateTasks = bulkUpdateTasks;
|
|
9
|
+
exports.bulkDeleteTasks = bulkDeleteTasks;
|
|
10
|
+
exports.bulkCreateTasks = bulkCreateTasks;
|
|
11
|
+
const index_1 = require("../../index");
|
|
12
|
+
const retry_1 = require("../../utils/retry");
|
|
13
|
+
const batch_processor_1 = require("../../utils/performance/batch-processor");
|
|
14
|
+
const validation_1 = require("./validation");
|
|
15
|
+
const response_factory_1 = require("../../utils/response-factory");
|
|
16
|
+
const constants_1 = require("./constants");
|
|
17
|
+
const BulkOperationValidator_1 = require("./bulk/BulkOperationValidator");
|
|
18
|
+
// ==================== BATCH PROCESSORS ====================
|
|
19
|
+
const processors = {
|
|
20
|
+
update: new batch_processor_1.BatchProcessor({ maxConcurrency: 5, batchSize: 10, enableMetrics: true, batchDelay: 0 }),
|
|
21
|
+
delete: new batch_processor_1.BatchProcessor({ maxConcurrency: 3, batchSize: 5, enableMetrics: true, batchDelay: 100 }),
|
|
22
|
+
create: new batch_processor_1.BatchProcessor({ maxConcurrency: 8, batchSize: 15, enableMetrics: true, batchDelay: 0 }),
|
|
23
|
+
};
|
|
24
|
+
// ==================== VALIDATION WRAPPERS ====================
|
|
25
|
+
// Re-use validation logic from BulkOperationValidator to eliminate duplication
|
|
26
|
+
const validateBulkUpdate = (args) => {
|
|
27
|
+
BulkOperationValidator_1.bulkOperationValidator.validateBulkUpdate(args);
|
|
28
|
+
BulkOperationValidator_1.bulkOperationValidator.preprocessFieldValue(args);
|
|
29
|
+
BulkOperationValidator_1.bulkOperationValidator.validateFieldConstraints(args);
|
|
30
|
+
};
|
|
31
|
+
const validateBulkCreate = (args) => BulkOperationValidator_1.bulkOperationValidator.validateBulkCreate(args);
|
|
32
|
+
const validateBulkDelete = (args) => BulkOperationValidator_1.bulkOperationValidator.validateBulkDelete(args);
|
|
33
|
+
const successResponse = (op, msg, tasks, meta) => ({
|
|
34
|
+
content: [{ type: 'text', text: (0, response_factory_1.formatAorpAsMarkdown)((0, index_1.createStandardResponse)(op, msg, { tasks }, { timestamp: new Date().toISOString(), ...meta })) }]
|
|
35
|
+
});
|
|
36
|
+
/**
|
|
37
|
+
* Resolve bulk-update field value for Vikunja's updateTask payload.
|
|
38
|
+
* Native bulk API used a numeric repeat_mode map; keep that conversion when merging.
|
|
39
|
+
*/
|
|
40
|
+
function resolveBulkUpdateValue(field, value) {
|
|
41
|
+
if (field === 'repeat_mode' && typeof value === 'string' && value in constants_1.REPEAT_MODE_MAP) {
|
|
42
|
+
return constants_1.REPEAT_MODE_MAP[value];
|
|
43
|
+
}
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
// ==================== BULK UPDATE ====================
|
|
47
|
+
/**
|
|
48
|
+
* Bulk-update via per-task GET + merge + POST.
|
|
49
|
+
*
|
|
50
|
+
* Intentionally does **not** call Vikunja's native `bulkUpdateTasks` API.
|
|
51
|
+
* That endpoint only sends `{ task_ids, field, value }`, and Vikunja's task
|
|
52
|
+
* update semantics are a full-model replace — omitted fields (description,
|
|
53
|
+
* priority, etc.) get cleared. Using the merge path matches single-task
|
|
54
|
+
* `update` and avoids silent data loss (see GitHub issue #46).
|
|
55
|
+
*/
|
|
56
|
+
async function bulkUpdateTasks(args) {
|
|
57
|
+
try {
|
|
58
|
+
validateBulkUpdate(args);
|
|
59
|
+
// Validated above by validateBulkUpdate
|
|
60
|
+
const taskIds = args.taskIds;
|
|
61
|
+
const client = await (0, index_1.getClientFromContext)();
|
|
62
|
+
const fieldValue = resolveBulkUpdateValue(args.field, args.value);
|
|
63
|
+
const updateResult = await processors.update.processBatches(taskIds, async (taskId) => {
|
|
64
|
+
const current = await client.tasks.getTask(taskId);
|
|
65
|
+
// Spread current task so fields not being changed survive Vikunja's full replace
|
|
66
|
+
const update = (0, validation_1.applyFieldUpdate)({ ...current }, args.field, fieldValue);
|
|
67
|
+
const updated = await client.tasks.updateTask(taskId, update);
|
|
68
|
+
if (args.field === 'assignees' && Array.isArray(args.value)) {
|
|
69
|
+
const currentAssignees = (await client.tasks.getTask(taskId)).assignees?.map((a) => a.id) || [];
|
|
70
|
+
if (args.value.length > 0) {
|
|
71
|
+
try {
|
|
72
|
+
await (0, retry_1.withRetry)(() => client.tasks.bulkAssignUsersToTask(taskId, { user_ids: args.value }), { ...index_1.RETRY_CONFIG.AUTH_ERRORS, shouldRetry: index_1.isAuthenticationError });
|
|
73
|
+
}
|
|
74
|
+
catch (assigneeError) {
|
|
75
|
+
if ((0, index_1.isAuthenticationError)(assigneeError))
|
|
76
|
+
throw new index_1.MCPError(index_1.ErrorCode.API_ERROR, 'Assignee operations may have authentication issues');
|
|
77
|
+
throw assigneeError;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
for (const userId of currentAssignees) {
|
|
81
|
+
try {
|
|
82
|
+
await (0, retry_1.withRetry)(() => client.tasks.removeUserFromTask(taskId, userId), { ...index_1.RETRY_CONFIG.AUTH_ERRORS, shouldRetry: index_1.isAuthenticationError });
|
|
83
|
+
}
|
|
84
|
+
catch (e) {
|
|
85
|
+
if ((0, index_1.isAuthenticationError)(e))
|
|
86
|
+
throw new index_1.MCPError(index_1.ErrorCode.API_ERROR, `${constants_1.AUTH_ERROR_MESSAGES.ASSIGNEE_REMOVE_PARTIAL} (Retried ${index_1.RETRY_CONFIG.AUTH_ERRORS.maxRetries} times)`);
|
|
87
|
+
throw e;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
if (args.field === 'labels' && Array.isArray(args.value)) {
|
|
92
|
+
await (0, retry_1.withRetry)(() => client.tasks.updateTaskLabels(taskId, { label_ids: args.value }), { ...index_1.RETRY_CONFIG.AUTH_ERRORS, shouldRetry: index_1.isAuthenticationError });
|
|
93
|
+
}
|
|
94
|
+
return updated;
|
|
95
|
+
});
|
|
96
|
+
if (updateResult.failed.length > 0 && updateResult.successful.length === 0) {
|
|
97
|
+
const firstError = updateResult.failed[0]?.error;
|
|
98
|
+
// Preserve MCPError instances with auth messages
|
|
99
|
+
if (firstError instanceof index_1.MCPError && firstError.message.includes('authentication'))
|
|
100
|
+
throw firstError;
|
|
101
|
+
throw new index_1.MCPError(index_1.ErrorCode.API_ERROR, `Bulk update failed. Could not update any tasks. Failed IDs: ${updateResult.failed.map(f => f.originalItem).join(', ')}`);
|
|
102
|
+
}
|
|
103
|
+
return successResponse('update-task', `Successfully updated ${taskIds.length} tasks`, updateResult.successful, {
|
|
104
|
+
count: taskIds.length, affectedFields: [args.field], performanceMetrics: {
|
|
105
|
+
totalDuration: updateResult.metrics.totalDuration, operationsPerSecond: updateResult.metrics.operationsPerSecond,
|
|
106
|
+
apiCallsUsed: updateResult.metrics.successfulOperations + updateResult.metrics.failedOperations,
|
|
107
|
+
},
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
catch (error) {
|
|
111
|
+
if (error instanceof index_1.MCPError)
|
|
112
|
+
throw error;
|
|
113
|
+
if (error instanceof Error && (error.message.includes('fetch failed') || error.message.includes('ECONNREFUSED') || error.message.includes('ENOTFOUND')))
|
|
114
|
+
throw (0, index_1.handleFetchError)(error, 'bulk update tasks');
|
|
115
|
+
throw (0, index_1.transformApiError)(error, 'Failed to bulk update tasks');
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
// ==================== BULK DELETE ====================
|
|
119
|
+
async function bulkDeleteTasks(args) {
|
|
120
|
+
try {
|
|
121
|
+
validateBulkDelete(args);
|
|
122
|
+
// Validated above by validateBulkDelete
|
|
123
|
+
const taskIds = args.taskIds;
|
|
124
|
+
const client = await (0, index_1.getClientFromContext)();
|
|
125
|
+
const fetchResult = await processors.delete.processBatches(taskIds, async (id) => await client.tasks.getTask(id));
|
|
126
|
+
const deletionResult = await processors.delete.processBatches(taskIds, async (id) => { await client.tasks.deleteTask(id); return { taskId: id, deleted: true }; });
|
|
127
|
+
if (deletionResult.failed.length > 0) {
|
|
128
|
+
const failedIds = deletionResult.failed.map(f => f.originalItem);
|
|
129
|
+
if (deletionResult.successful.length > 0) {
|
|
130
|
+
return successResponse('delete-task', `Bulk delete partially completed. Successfully deleted ${deletionResult.successful.length} tasks. Failed to delete task IDs: ${failedIds.join(', ')}`, [], {
|
|
131
|
+
count: deletionResult.successful.length, failedCount: deletionResult.failed.length, failedIds, previousState: fetchResult.successful, success: false,
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
throw new index_1.MCPError(index_1.ErrorCode.API_ERROR, `Bulk delete failed. Could not delete any tasks. Failed IDs: ${failedIds.join(', ')}`);
|
|
135
|
+
}
|
|
136
|
+
return successResponse('delete-task', `Successfully deleted ${taskIds.length} tasks`, [], { count: taskIds.length, deletedTaskIds: taskIds, previousState: fetchResult.successful });
|
|
137
|
+
}
|
|
138
|
+
catch (error) {
|
|
139
|
+
if (error instanceof index_1.MCPError)
|
|
140
|
+
throw error;
|
|
141
|
+
if (error instanceof Error && (error.message.includes('fetch failed') || error.message.includes('ECONNREFUSED') || error.message.includes('ENOTFOUND')))
|
|
142
|
+
throw (0, index_1.handleFetchError)(error, 'bulk delete tasks');
|
|
143
|
+
throw (0, index_1.transformApiError)(error, 'Failed to bulk delete tasks');
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
// ==================== BULK CREATE ====================
|
|
147
|
+
async function bulkCreateTasks(args) {
|
|
148
|
+
try {
|
|
149
|
+
validateBulkCreate(args);
|
|
150
|
+
}
|
|
151
|
+
catch (error) {
|
|
152
|
+
// Preserve validation errors
|
|
153
|
+
if (error instanceof index_1.MCPError)
|
|
154
|
+
throw error;
|
|
155
|
+
throw error;
|
|
156
|
+
}
|
|
157
|
+
try {
|
|
158
|
+
const client = await (0, index_1.getClientFromContext)();
|
|
159
|
+
// Validated above by validateBulkCreate
|
|
160
|
+
const projectId = args.projectId;
|
|
161
|
+
const tasks = args.tasks;
|
|
162
|
+
const creationResult = await processors.create.processBatches(tasks.map((_, i) => i), async (index) => {
|
|
163
|
+
const t = tasks[index];
|
|
164
|
+
const newTask = { title: t.title, project_id: projectId };
|
|
165
|
+
if (t.description !== undefined)
|
|
166
|
+
newTask.description = t.description;
|
|
167
|
+
if (t.dueDate !== undefined)
|
|
168
|
+
newTask.due_date = t.dueDate;
|
|
169
|
+
if (t.priority !== undefined)
|
|
170
|
+
newTask.priority = t.priority;
|
|
171
|
+
if (t.repeatAfter !== undefined || t.repeatMode !== undefined) {
|
|
172
|
+
const rc = (0, validation_1.convertRepeatConfiguration)(t.repeatAfter, t.repeatMode);
|
|
173
|
+
if (rc.repeat_after !== undefined)
|
|
174
|
+
newTask.repeat_after = rc.repeat_after;
|
|
175
|
+
if (rc.repeat_mode !== undefined)
|
|
176
|
+
newTask.repeat_mode = rc.repeat_mode;
|
|
177
|
+
}
|
|
178
|
+
const created = await client.tasks.createTask(projectId, newTask);
|
|
179
|
+
if (!created.id)
|
|
180
|
+
return created;
|
|
181
|
+
// Narrow type - id is guaranteed to exist after early return
|
|
182
|
+
const createdId = created.id;
|
|
183
|
+
try {
|
|
184
|
+
const labels = t.labels;
|
|
185
|
+
if (labels && labels.length > 0)
|
|
186
|
+
await (0, retry_1.withRetry)(() => client.tasks.updateTaskLabels(createdId, { label_ids: labels }), { maxRetries: index_1.RETRY_CONFIG.AUTH_ERRORS.maxRetries ?? 3, timeout: (index_1.RETRY_CONFIG.AUTH_ERRORS.initialDelay ?? 1000) + (index_1.RETRY_CONFIG.AUTH_ERRORS.maxDelay ?? 10000), shouldRetry: index_1.isAuthenticationError });
|
|
187
|
+
const assignees = t.assignees;
|
|
188
|
+
if (assignees && assignees.length > 0) {
|
|
189
|
+
try {
|
|
190
|
+
await (0, retry_1.withRetry)(() => client.tasks.bulkAssignUsersToTask(createdId, { user_ids: assignees }), { maxRetries: index_1.RETRY_CONFIG.AUTH_ERRORS.maxRetries ?? 3, timeout: (index_1.RETRY_CONFIG.AUTH_ERRORS.initialDelay ?? 1000) + (index_1.RETRY_CONFIG.AUTH_ERRORS.maxDelay ?? 10000), shouldRetry: index_1.isAuthenticationError });
|
|
191
|
+
}
|
|
192
|
+
catch (assigneeError) {
|
|
193
|
+
if ((0, index_1.isAuthenticationError)(assigneeError)) {
|
|
194
|
+
throw new index_1.MCPError(index_1.ErrorCode.API_ERROR, 'Assignee operations may have authentication issues');
|
|
195
|
+
}
|
|
196
|
+
// Wrap assignee errors to distinguish from createTask errors
|
|
197
|
+
if (assigneeError instanceof Error) {
|
|
198
|
+
const wrappedError = new index_1.MCPError(index_1.ErrorCode.API_ERROR, assigneeError.message);
|
|
199
|
+
wrappedError.isLabelAssigneeError = true;
|
|
200
|
+
throw wrappedError;
|
|
201
|
+
}
|
|
202
|
+
throw assigneeError;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
return await client.tasks.getTask(createdId);
|
|
206
|
+
}
|
|
207
|
+
catch (updateError) {
|
|
208
|
+
// Clean up the created task since labels/assignees failed
|
|
209
|
+
try {
|
|
210
|
+
await client.tasks.deleteTask(createdId);
|
|
211
|
+
}
|
|
212
|
+
catch (deleteError) {
|
|
213
|
+
index_1.logger.error('Cleanup failed', deleteError);
|
|
214
|
+
}
|
|
215
|
+
// Wrap label errors to distinguish from createTask errors
|
|
216
|
+
if (updateError instanceof Error && !(updateError instanceof index_1.MCPError)) {
|
|
217
|
+
const wrappedError = new index_1.MCPError(index_1.ErrorCode.API_ERROR, updateError.message);
|
|
218
|
+
wrappedError.isLabelAssigneeError = true;
|
|
219
|
+
throw wrappedError;
|
|
220
|
+
}
|
|
221
|
+
throw updateError;
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
const failedTasks = creationResult.failed.map(f => ({ index: f.originalItem, error: f.error instanceof Error ? f.error.message : String(f.error) }));
|
|
225
|
+
if (failedTasks.length > 0 && creationResult.successful.length === 0) {
|
|
226
|
+
const firstError = creationResult.failed[0]?.error;
|
|
227
|
+
// Preserve MCPError instances with auth messages or label/assignee marker
|
|
228
|
+
if (firstError instanceof index_1.MCPError && (firstError.message.includes('authentication') || firstError.isLabelAssigneeError === true))
|
|
229
|
+
throw firstError;
|
|
230
|
+
// Transform all other errors (including API errors) into generic bulk create error
|
|
231
|
+
throw new index_1.MCPError(index_1.ErrorCode.API_ERROR, `Bulk create failed. Could not create any tasks`);
|
|
232
|
+
}
|
|
233
|
+
return successResponse('create-tasks', failedTasks.length > 0 ? `Bulk create partially completed. Successfully created ${creationResult.successful.length} tasks, ${failedTasks.length} failed.` : `Successfully created ${creationResult.successful.length} tasks`, creationResult.successful, {
|
|
234
|
+
count: creationResult.successful.length, success: failedTasks.length === 0, ...(failedTasks.length > 0 && { failedCount: failedTasks.length, failures: failedTasks }),
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
catch (error) {
|
|
238
|
+
// Preserve MCPError instances from validation
|
|
239
|
+
if (error instanceof index_1.MCPError)
|
|
240
|
+
throw error;
|
|
241
|
+
// Preserve fetch/connection errors
|
|
242
|
+
if (error instanceof Error && (error.message.includes('fetch failed') || error.message.includes('ECONNREFUSED') || error.message.includes('ENOTFOUND'))) {
|
|
243
|
+
throw (0, index_1.handleFetchError)(error, 'bulk create tasks');
|
|
244
|
+
}
|
|
245
|
+
// Transform all other errors into generic bulk create error
|
|
246
|
+
throw new index_1.MCPError(index_1.ErrorCode.API_ERROR, 'Bulk create failed. Could not create any tasks');
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
//# sourceMappingURL=bulk-operations-simplified.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulk-operations-simplified.js","sourceRoot":"","sources":["../../../src/tools/tasks/bulk-operations-simplified.ts"],"names":[],"mappings":";AAAA;;;GAGG;;AAkDH,wDAKC;AAaD,0CAqDC;AAID,0CA0BC;AAID,0CA6FC;AAtPD,uCAAkL;AAElL,6CAA8C;AAC9C,6EAAyE;AAE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,CAAC,iBAAS,CAAC,SAAS,EAAE,gDAAgD,CAAC,CAAC;QAC5F,CAAC;QAED,OAAO,eAAe,CAAC,cAAc,EAAE,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,yDAAyD,cAAc,CAAC,UAAU,CAAC,MAAM,WAAW,WAAW,CAAC,MAAM,UAAU,CAAC,CAAC,CAAC,wBAAwB,cAAc,CAAC,UAAU,CAAC,MAAM,QAAQ,EAAE,cAAc,CAAC,UAAU,EAAE;YAC9R,KAAK,EAAE,cAAc,CAAC,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,IAAI,EAAE,WAAW,EAAE,WAAW,CAAC,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;SACtK,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,8CAA8C;QAC9C,IAAI,KAAK,YAAY,gBAAQ;YAAE,MAAM,KAAK,CAAC;QAC3C,mCAAmC;QACnC,IAAI,KAAK,YAAY,KAAK,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC;YACxJ,MAAM,IAAA,wBAAgB,EAAC,KAAK,EAAE,mBAAmB,CAAC,CAAC;QACrD,CAAC;QACD,4DAA4D;QAC5D,MAAM,IAAI,gBAAQ,CAAC,iBAAS,CAAC,SAAS,EAAE,gDAAgD,CAAC,CAAC;IAC5F,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bulk operations for tasks with performance optimizations
|
|
3
|
+
*
|
|
4
|
+
* This file maintains backward compatibility while using the simplified implementation.
|
|
5
|
+
*/
|
|
6
|
+
export { bulkUpdateTasks, bulkDeleteTasks, bulkCreateTasks, resolveBulkUpdateValue } from './bulk-operations-simplified';
|
|
7
|
+
export type { BulkUpdateArgs, BulkDeleteArgs, BulkCreateArgs, BulkCreateTaskData } from './bulk/BulkOperationValidator';
|
|
8
|
+
//# sourceMappingURL=bulk-operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulk-operations.d.ts","sourceRoot":"","sources":["../../../src/tools/tasks/bulk-operations.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAGzH,YAAY,EACV,cAAc,EACd,cAAc,EACd,cAAc,EACd,kBAAkB,EACnB,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Bulk operations for tasks with performance optimizations
|
|
4
|
+
*
|
|
5
|
+
* This file maintains backward compatibility while using the simplified implementation.
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.resolveBulkUpdateValue = exports.bulkCreateTasks = exports.bulkDeleteTasks = exports.bulkUpdateTasks = void 0;
|
|
9
|
+
var bulk_operations_simplified_1 = require("./bulk-operations-simplified");
|
|
10
|
+
Object.defineProperty(exports, "bulkUpdateTasks", { enumerable: true, get: function () { return bulk_operations_simplified_1.bulkUpdateTasks; } });
|
|
11
|
+
Object.defineProperty(exports, "bulkDeleteTasks", { enumerable: true, get: function () { return bulk_operations_simplified_1.bulkDeleteTasks; } });
|
|
12
|
+
Object.defineProperty(exports, "bulkCreateTasks", { enumerable: true, get: function () { return bulk_operations_simplified_1.bulkCreateTasks; } });
|
|
13
|
+
Object.defineProperty(exports, "resolveBulkUpdateValue", { enumerable: true, get: function () { return bulk_operations_simplified_1.resolveBulkUpdateValue; } });
|
|
14
|
+
//# sourceMappingURL=bulk-operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulk-operations.js","sourceRoot":"","sources":["../../../src/tools/tasks/bulk-operations.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,2EAAyH;AAAhH,6HAAA,eAAe,OAAA;AAAE,6HAAA,eAAe,OAAA;AAAE,6HAAA,eAAe,OAAA;AAAE,oIAAA,sBAAsB,OAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Comment operations service
|
|
3
|
+
* Handles core business logic for task comment management
|
|
4
|
+
*/
|
|
5
|
+
import type { TaskComment } from '../../../types/vikunja';
|
|
6
|
+
/**
|
|
7
|
+
* Service for managing task comment operations
|
|
8
|
+
*/
|
|
9
|
+
export declare const CommentOperationsService: {
|
|
10
|
+
/**
|
|
11
|
+
* Create a new comment on a task
|
|
12
|
+
*/
|
|
13
|
+
createComment(taskId: number, commentText: string): Promise<TaskComment>;
|
|
14
|
+
/**
|
|
15
|
+
* Fetch all comments for a task
|
|
16
|
+
*/
|
|
17
|
+
fetchTaskComments(taskId: number): Promise<TaskComment[]>;
|
|
18
|
+
/**
|
|
19
|
+
* Get comment count from comments array
|
|
20
|
+
*/
|
|
21
|
+
getCommentCount(comments: TaskComment[]): number;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=CommentOperationsService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommentOperationsService.d.ts","sourceRoot":"","sources":["../../../../src/tools/tasks/comments/CommentOperationsService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAG1D;;GAEG;AACH,eAAO,MAAM,wBAAwB;IACnC;;OAEG;0BACyB,MAAM,eAAe,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAQ9E;;OAEG;8BAC6B,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC;IAK/D;;OAEG;8BACuB,WAAW,EAAE,GAAG,MAAM;CAGjD,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Comment operations service
|
|
4
|
+
* Handles core business logic for task comment management
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.CommentOperationsService = void 0;
|
|
8
|
+
const client_1 = require("../../../client");
|
|
9
|
+
/**
|
|
10
|
+
* Service for managing task comment operations
|
|
11
|
+
*/
|
|
12
|
+
exports.CommentOperationsService = {
|
|
13
|
+
/**
|
|
14
|
+
* Create a new comment on a task
|
|
15
|
+
*/
|
|
16
|
+
async createComment(taskId, commentText) {
|
|
17
|
+
const client = await (0, client_1.getClientFromContext)();
|
|
18
|
+
return await client.tasks.createTaskComment(taskId, {
|
|
19
|
+
task_id: taskId,
|
|
20
|
+
comment: commentText,
|
|
21
|
+
});
|
|
22
|
+
},
|
|
23
|
+
/**
|
|
24
|
+
* Fetch all comments for a task
|
|
25
|
+
*/
|
|
26
|
+
async fetchTaskComments(taskId) {
|
|
27
|
+
const client = await (0, client_1.getClientFromContext)();
|
|
28
|
+
return await client.tasks.getTaskComments(taskId);
|
|
29
|
+
},
|
|
30
|
+
/**
|
|
31
|
+
* Get comment count from comments array
|
|
32
|
+
*/
|
|
33
|
+
getCommentCount(comments) {
|
|
34
|
+
return comments.length;
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=CommentOperationsService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommentOperationsService.js","sourceRoot":"","sources":["../../../../src/tools/tasks/comments/CommentOperationsService.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,4CAAuD;AAEvD;;GAEG;AACU,QAAA,wBAAwB,GAAG;IACtC;;OAEG;IACH,KAAK,CAAC,aAAa,CAAC,MAAc,EAAE,WAAmB;QACrD,MAAM,MAAM,GAAG,MAAM,IAAA,6BAAoB,GAAE,CAAC;QAC5C,OAAO,MAAM,MAAM,CAAC,KAAK,CAAC,iBAAiB,CAAC,MAAM,EAAE;YAClD,OAAO,EAAE,MAAM;YACf,OAAO,EAAE,WAAW;SACrB,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,iBAAiB,CAAC,MAAc;QACpC,MAAM,MAAM,GAAG,MAAM,IAAA,6BAAoB,GAAE,CAAC;QAC5C,OAAO,MAAM,MAAM,CAAC,KAAK,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;IACpD,CAAC;IAED;;OAEG;IACH,eAAe,CAAC,QAAuB;QACrC,OAAO,QAAQ,CAAC,MAAM,CAAC;IACzB,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Comment response formatter service
|
|
3
|
+
* Handles response formatting for comment operations
|
|
4
|
+
*/
|
|
5
|
+
import type { StandardTaskResponse } from '../../../types';
|
|
6
|
+
import type { TaskComment } from '../../../types/vikunja';
|
|
7
|
+
/**
|
|
8
|
+
* Service for formatting comment operation responses
|
|
9
|
+
*/
|
|
10
|
+
export declare const commentResponseFormatter: {
|
|
11
|
+
/**
|
|
12
|
+
* Format successful comment creation response
|
|
13
|
+
*/
|
|
14
|
+
formatCreateCommentResponse(comment: TaskComment): StandardTaskResponse;
|
|
15
|
+
/**
|
|
16
|
+
* Format successful comment list response
|
|
17
|
+
*/
|
|
18
|
+
formatListCommentsResponse(comments: TaskComment[]): StandardTaskResponse;
|
|
19
|
+
/**
|
|
20
|
+
* Format MCP response wrapper
|
|
21
|
+
*/
|
|
22
|
+
formatMcpResponse(response: StandardTaskResponse): {
|
|
23
|
+
content: Array<{
|
|
24
|
+
type: "text";
|
|
25
|
+
text: string;
|
|
26
|
+
}>;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=CommentResponseFormatter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommentResponseFormatter.d.ts","sourceRoot":"","sources":["../../../../src/tools/tasks/comments/CommentResponseFormatter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAoB,MAAM,gBAAgB,CAAC;AAC7E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAI1D;;GAEG;AACH,eAAO,MAAM,wBAAwB;IACnC;;OAEG;yCACkC,WAAW,GAAG,oBAAoB;IAYvE;;OAEG;yCACkC,WAAW,EAAE,GAAG,oBAAoB;IAazE;;OAEG;gCACyB,oBAAoB,GAAG;QAAE,OAAO,EAAE,KAAK,CAAC;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC,CAAA;KAAE;CA6BtG,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Comment response formatter service
|
|
4
|
+
* Handles response formatting for comment operations
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.commentResponseFormatter = void 0;
|
|
8
|
+
const types_1 = require("../../../types");
|
|
9
|
+
const response_factory_1 = require("../../../utils/response-factory");
|
|
10
|
+
/**
|
|
11
|
+
* Service for formatting comment operation responses
|
|
12
|
+
*/
|
|
13
|
+
exports.commentResponseFormatter = {
|
|
14
|
+
/**
|
|
15
|
+
* Format successful comment creation response
|
|
16
|
+
*/
|
|
17
|
+
formatCreateCommentResponse(comment) {
|
|
18
|
+
return {
|
|
19
|
+
success: true,
|
|
20
|
+
operation: 'comment',
|
|
21
|
+
message: 'Comment added successfully',
|
|
22
|
+
comment: comment,
|
|
23
|
+
metadata: {
|
|
24
|
+
timestamp: new Date().toISOString(),
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
/**
|
|
29
|
+
* Format successful comment list response
|
|
30
|
+
*/
|
|
31
|
+
formatListCommentsResponse(comments) {
|
|
32
|
+
return {
|
|
33
|
+
success: true,
|
|
34
|
+
operation: 'list',
|
|
35
|
+
message: `Found ${comments.length} comments`,
|
|
36
|
+
comments: comments,
|
|
37
|
+
metadata: {
|
|
38
|
+
timestamp: new Date().toISOString(),
|
|
39
|
+
count: comments.length,
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
},
|
|
43
|
+
/**
|
|
44
|
+
* Format MCP response wrapper
|
|
45
|
+
*/
|
|
46
|
+
formatMcpResponse(response) {
|
|
47
|
+
// Handle metadata properly to avoid type issues
|
|
48
|
+
const safeMetadata = {
|
|
49
|
+
timestamp: response.metadata?.timestamp || new Date().toISOString(),
|
|
50
|
+
...(response.metadata?.count !== undefined ? { count: response.metadata.count } : {}),
|
|
51
|
+
...(response.metadata?.affectedFields ? { affectedFields: response.metadata.affectedFields } : {}),
|
|
52
|
+
// Convert previousState to proper Record<string, unknown> if it exists
|
|
53
|
+
...(response.metadata?.previousState && typeof response.metadata.previousState === 'object' && response.metadata.previousState !== null
|
|
54
|
+
? { previousState: response.metadata.previousState }
|
|
55
|
+
: {})
|
|
56
|
+
};
|
|
57
|
+
// Create proper AORP response instead of casting StandardTaskResponse
|
|
58
|
+
const aorpResponse = (0, types_1.createStandardResponse)(response.operation || 'unknown', response.message || 'Operation completed', response, safeMetadata);
|
|
59
|
+
return {
|
|
60
|
+
content: [
|
|
61
|
+
{
|
|
62
|
+
type: 'text',
|
|
63
|
+
text: (0, response_factory_1.formatAorpAsMarkdown)(aorpResponse), // Format AORP response as markdown
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=CommentResponseFormatter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommentResponseFormatter.js","sourceR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,CAAC,QAAQ,CAAC,QAAQ,EAAE,aAAa,IAAI,OAAO,QAAQ,CAAC,QAAQ,CAAC,aAAa,KAAK,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,aAAa,KAAK,IAAI;gBACrI,CAAC,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,QAAQ,CAAC,aAAwC,EAAE;gBAC/E,CAAC,CAAC,EAAE,CAAC;SACR,CAAC;QAEF,sEAAsE;QACtE,MAAM,YAAY,GAAG,IAAA,8BAAsB,EACzC,QAAQ,CAAC,SAAS,IAAI,SAAS,EAC/B,QAAQ,CAAC,OAAO,IAAI,qBAAqB,EACzC,QAAQ,EACR,YAAY,CACb,CAAC;QAEF,OAAO;YACL,OAAO,EAAE;gBACP;oBACE,IAAI,EAAE,MAAe;oBACrB,IAAI,EAAE,IAAA,uCAAoB,EAAC,YAAY,CAAC,EAAE,mCAAmC;iBAC9E;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Comment validation service
|
|
3
|
+
* Handles input validation for comment operations
|
|
4
|
+
*/
|
|
5
|
+
export interface CommentOperationInput {
|
|
6
|
+
id?: number;
|
|
7
|
+
comment?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Service for validating comment operation inputs
|
|
11
|
+
*/
|
|
12
|
+
export declare const commentValidationService: {
|
|
13
|
+
/**
|
|
14
|
+
* Validate input for comment operations (create or list)
|
|
15
|
+
*/
|
|
16
|
+
validateCommentInput(args: CommentOperationInput): {
|
|
17
|
+
taskId: number;
|
|
18
|
+
commentText?: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Validate input specifically for listing comments
|
|
22
|
+
*/
|
|
23
|
+
validateListInput(args: {
|
|
24
|
+
id?: number;
|
|
25
|
+
}): {
|
|
26
|
+
taskId: number;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Check if operation should create a comment or list comments
|
|
30
|
+
*/
|
|
31
|
+
shouldCreateComment(commentText?: string): boolean;
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=CommentValidationService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommentValidationService.d.ts","sourceRoot":"","sources":["../../../../src/tools/tasks/comments/CommentValidationService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,MAAM,WAAW,qBAAqB;IACpC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,eAAO,MAAM,wBAAwB;IACnC;;OAEG;+BACwB,qBAAqB,GAAG;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE;IAkB3F;;OAEG;4BACqB;QAAE,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE;IAc5D;;OAEG;sCAC+B,MAAM,GAAG,OAAO;CAGnD,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Comment validation service
|
|
4
|
+
* Handles input validation for comment operations
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.commentValidationService = void 0;
|
|
8
|
+
const types_1 = require("../../../types");
|
|
9
|
+
const validation_1 = require("../validation");
|
|
10
|
+
/**
|
|
11
|
+
* Service for validating comment operation inputs
|
|
12
|
+
*/
|
|
13
|
+
exports.commentValidationService = {
|
|
14
|
+
/**
|
|
15
|
+
* Validate input for comment operations (create or list)
|
|
16
|
+
*/
|
|
17
|
+
validateCommentInput(args) {
|
|
18
|
+
if (!args.id) {
|
|
19
|
+
throw new types_1.MCPError(types_1.ErrorCode.VALIDATION_ERROR, 'Task id is required for comment operation');
|
|
20
|
+
}
|
|
21
|
+
(0, validation_1.validateId)(args.id, 'id');
|
|
22
|
+
// Build return object, only including defined properties to satisfy exactOptionalPropertyTypes
|
|
23
|
+
const result = {
|
|
24
|
+
taskId: args.id,
|
|
25
|
+
};
|
|
26
|
+
if (args.comment !== undefined) {
|
|
27
|
+
result.commentText = args.comment;
|
|
28
|
+
}
|
|
29
|
+
return result;
|
|
30
|
+
},
|
|
31
|
+
/**
|
|
32
|
+
* Validate input specifically for listing comments
|
|
33
|
+
*/
|
|
34
|
+
validateListInput(args) {
|
|
35
|
+
if (!args.id) {
|
|
36
|
+
throw new types_1.MCPError(types_1.ErrorCode.VALIDATION_ERROR, 'Task id is required for list-comments operation');
|
|
37
|
+
}
|
|
38
|
+
(0, validation_1.validateId)(args.id, 'id');
|
|
39
|
+
return {
|
|
40
|
+
taskId: args.id,
|
|
41
|
+
};
|
|
42
|
+
},
|
|
43
|
+
/**
|
|
44
|
+
* Check if operation should create a comment or list comments
|
|
45
|
+
*/
|
|
46
|
+
shouldCreateComment(commentText) {
|
|
47
|
+
return commentText !== undefined && commentText.trim() !== '';
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=CommentValidationService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommentValidationService.js","sourceRoot":"","sources":["../../../../src/tools/tasks/comments/CommentValidationService.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,0CAAqD;AACrD,8CAA2C;AAO3C;;GAEG;AACU,QAAA,wBAAwB,GAAG;IACtC;;OAEG;IACH,oBAAoB,CAAC,IAA2B;QAC9C,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;YACb,MAAM,IAAI,gBAAQ,CAAC,iBAAS,CAAC,gBAAgB,EAAE,2CAA2C,CAAC,CAAC;QAC9F,CAAC;QACD,IAAA,uBAAU,EAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;QAE1B,+FAA+F;QAC/F,MAAM,MAAM,GAA6C;YACvD,MAAM,EAAE,IAAI,CAAC,EAAE;SAChB,CAAC;QAEF,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;YAC/B,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC;QACpC,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;IAED;;OAEG;IACH,iBAAiB,CAAC,IAAqB;QACrC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;YACb,MAAM,IAAI,gBAAQ,CAChB,iBAAS,CAAC,gBAAgB,EAC1B,iDAAiD,CAClD,CAAC;QACJ,CAAC;QACD,IAAA,uBAAU,EAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;QAE1B,OAAO;YACL,MAAM,EAAE,IAAI,CAAC,EAAE;SAChB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,mBAAmB,CAAC,WAAoB;QACtC,OAAO,WAAW,KAAK,SAAS,IAAI,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;IAChE,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Comment operations for tasks
|
|
3
|
+
* Refactored to use modular service architecture
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Add a comment to a task or list task comments
|
|
7
|
+
*/
|
|
8
|
+
export declare function handleComment(args: {
|
|
9
|
+
id?: number;
|
|
10
|
+
comment?: string;
|
|
11
|
+
}): Promise<{
|
|
12
|
+
content: Array<{
|
|
13
|
+
type: 'text';
|
|
14
|
+
text: string;
|
|
15
|
+
}>;
|
|
16
|
+
}>;
|
|
17
|
+
/**
|
|
18
|
+
* Remove a comment from a task
|
|
19
|
+
* Note: This functionality is not available in the current node-vikunja API
|
|
20
|
+
*/
|
|
21
|
+
export declare function removeComment(): Promise<{
|
|
22
|
+
content: Array<{
|
|
23
|
+
type: 'text';
|
|
24
|
+
text: string;
|
|
25
|
+
}>;
|
|
26
|
+
}>;
|
|
27
|
+
/**
|
|
28
|
+
* List all comments for a task
|
|
29
|
+
*/
|
|
30
|
+
export declare function listComments(args: {
|
|
31
|
+
id?: number;
|
|
32
|
+
}): Promise<{
|
|
33
|
+
content: Array<{
|
|
34
|
+
type: 'text';
|
|
35
|
+
text: string;
|
|
36
|
+
}>;
|
|
37
|
+
}>;
|
|
38
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tools/tasks/comments/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAOH;;GAEG;AACH,wBAAsB,aAAa,CAAC,IAAI,EAAE;IACxC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC,CA6B9D;AAED;;;GAGG;AACH,wBAAgB,aAAa,IAAI,OAAO,CAAC;IAAE,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC,CAK3F;AAED;;GAEG;AACH,wBAAsB,YAAY,CAAC,IAAI,EAAE;IACvC,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC,CAgB9D"}
|