"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.logger = void 0;
exports.defineToolSpec = defineToolSpec;
exports.prefixWithLineNumbers = prefixWithLineNumbers;
const logger_1 = require("../../../utils/logger");
exports.logger = (0, logger_1.createWinstonLogger)(false, "tools");
function defineToolSpec(toolSpec) {
    return toolSpec;
}
function prefixWithLineNumbers(content, firstLine = 1) {
    const lines = content.split(/\r?\n/);
    const maxDigitsInLineNumbers = (firstLine + lines.length).toString().length;
    let result = "";
    for (let i = 0; i < lines.length; ++i) {
        result += `${(firstLine++).toString().padStart(maxDigitsInLineNumbers, '0')}: ${lines[i]}\n`;
    }
    return result;
}
