"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WORKFLOW_DEFAULT_CONTRACT_OBJECTIVE = void 0;
exports.createDefaultWorkflowContract = createDefaultWorkflowContract;
exports.createDefaultWorkflowExecutionContract = createDefaultWorkflowExecutionContract;
exports.WORKFLOW_DEFAULT_CONTRACT_OBJECTIVE = "Continue the current workflow.";
function createDefaultWorkflowContract(objective = null) {
    const normalizedObjective = objective?.trim();
    return {
        objective: normalizedObjective === undefined || normalizedObjective.length === 0
            ? exports.WORKFLOW_DEFAULT_CONTRACT_OBJECTIVE
            : normalizedObjective,
        doneWhen: [],
        inputs: [],
        outputs: [],
    };
}
function createDefaultWorkflowExecutionContract(objective = null) {
    return createDefaultWorkflowContract(objective);
}
