"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.endTestExecutor = void 0;
exports.endTestExecutor = {
    needsFind: () => false,
    getStepType: () => 'end_test',
    execute: (payload, _stateProvider, eventHandler, logger) => {
        if (eventHandler.isInsideStepGroup()) {
            eventHandler.moveCursorOutOfGroup();
        }
        const toolParams = payload.toolCall.toolParams;
        const summary = toolParams?.summary;
        logger.info(`Test ended${summary ? `: ${summary}` : ''}`);
        return Promise.resolve({ success: true, shouldEndTest: true });
    },
};
