refactor sigma actions handler into multiple files

This commit is contained in:
Charlotte Croce 2025-04-18 13:26:20 -04:00
parent bfabd6de2a
commit 31d6296c6e
10 changed files with 853 additions and 769 deletions

View file

@ -7,10 +7,8 @@
const logger = require('../../utils/logger');
const { handleError } = require('../../utils/error_handler');
const { explainSigmaRule } = require('../../services/sigma/sigma_details_service');
const { processRuleDetails } = require('./sigma_action_handlers');
const { processRuleDetails } = require('./actions/sigma_action_core');
const FILE_NAME = 'sigma_details_handler.js';
/**
* Handle the sigma-details command for Sigma rules
*
@ -50,7 +48,6 @@ const handleCommand = async (command, respond) => {
});
}
};
module.exports = {
handleCommand
};