export function getThreads(jobId, deps) {
    const { jobContextGateway, reviewContextGateway } = deps;
    const jobContext = jobContextGateway.get(jobId);
    if (!jobContext) {
        return {
            success: false,
            error: `Job context not found: ${jobId}`,
        };
    }
    const reviewContext = reviewContextGateway.read(jobContext.localPath, jobContext.mergeRequestId);
    if (!reviewContext) {
        return {
            success: false,
            error: `Review context not found for job: ${jobId}`,
        };
    }
    return {
        success: true,
        threads: reviewContext.threads,
    };
}
//# sourceMappingURL=getThreads.usecase.js.map