export function startAgent(jobId, agentName, deps) {
    const { progressGateway } = deps;
    const progress = progressGateway.startAgent(jobId, agentName);
    if (!progress) {
        return {
            success: false,
            error: `Agent not found: ${agentName}`,
        };
    }
    const agent = progress.agents.find((a) => a.name === agentName);
    return {
        success: true,
        agentName,
        startedAt: agent?.startedAt ?? new Date(),
        overallProgress: progress.overallProgress,
    };
}
//# sourceMappingURL=startAgent.usecase.js.map