"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildTransitionPresentation = buildTransitionPresentation;
const types_1 = require("../../platform/ticket-tracker/types");
const presentation_1 = require("./presentation");
const results_1 = require("./results");
function buildTransitionPresentation(input) {
    return (0, presentation_1.resolveIssuePresentation)({
        finalOutcome: input.finalOutcome,
        facts: input.facts,
        summary: input.summary,
        comment: input.comment,
        result: input.result,
        consecutiveAiRuns: input.consecutiveAiRuns,
        responseLanguage: input.responseLanguage,
        readyLabel: (0, results_1.resolveReadyLabel)(input.config),
        workflowState: input.workflowState,
        isPullRequest: input.issue.kind === types_1.TRACKER_ITEM_KINDS.pullRequest,
        handoffToPr: input.handoffToPr,
        handoffPullRequestStatus: input.handoffPullRequestStatus,
        handoffIssueCompletion: input.handoffIssueCompletion,
        needsHumanReason: input.needsHumanReason,
        terminalSuccess: input.terminalSuccess,
    });
}
