feat(tasks): enhance delete task functionality with account resolution and access control

Merged
PR
6mo ago
+207-23
  • Updated registerDeleteTaskTool to include account ID resolution using resolveAccountId, ensuring only authorized users can delete tasks.
  • Modified deleteTask to accept a resolvedAccountId parameter, enforcing access control by checking task ownership before deletion.
  • Introduced TASK_ACCESS_DENIED_MESSAGE for clearer error handling when access is denied.
  • Updated deleteTaskHandler to handle access denial responses appropriately.
  • Adjusted validation schema for task deletion to ensure proper UUID format.