"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.renderRequiredSkills = renderRequiredSkills;
exports.renderRequiredMcp = renderRequiredMcp;
const prompt_text_1 = require("./prompt-text");
function renderRequiredSkills(requiredSkills) {
    if (requiredSkills === undefined || requiredSkills === null) {
        return [];
    }
    const lines = [
        prompt_text_1.PROMPT_TEXT.fieldRequiredSkills,
        ...(requiredSkills.length > 0
            ? requiredSkills.map((skillId) => `  - ${skillId}`)
            : [`  ${prompt_text_1.PROMPT_TEXT.none}`]),
    ];
    if (requiredSkills.length > 0) {
        lines.push("  Required skills are declared workflow capabilities. AlpacaLoop handles missing required skills before launch through setup issues or human confirmation; do not plan skill installation or creation as ordinary workflow work.");
    }
    return lines;
}
function renderRequiredMcp(requiredMcp) {
    if (requiredMcp === undefined || requiredMcp === null) {
        return [];
    }
    const lines = [
        prompt_text_1.PROMPT_TEXT.fieldRequiredMcp,
        ...(requiredMcp.length > 0
            ? requiredMcp.map((mcpRef) => `  - ${mcpRef}`)
            : [`  ${prompt_text_1.PROMPT_TEXT.none}`]),
    ];
    if (requiredMcp.length > 0) {
        lines.push("  Required MCP refs are declared workflow tool connections. AlpacaLoop handles missing MCP setup before launch through setup issues or human confirmation; do not plan MCP installation as ordinary workflow work.");
    }
    return lines;
}
