"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.stringToToolResult = stringToToolResult;
exports.jsonPrettyPrint = jsonPrettyPrint;
exports.validateMablEmail = validateMablEmail;
function stringToToolResult(value, isError = false) {
    return {
        content: [
            {
                type: 'text',
                text: value,
            },
        ],
        isError,
    };
}
function jsonPrettyPrint(json) {
    return JSON.stringify(json, undefined, 2);
}
const MABL_EMAIL_REGEX = /@mabl\.com$/;
function validateMablEmail(email) {
    return MABL_EMAIL_REGEX.test(email);
}
