"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCreateMablTestMessages = exports.createMablTestPrompt = void 0;
exports.createMablTestPrompt = {
    name: 'create_mabl_test_for_current_work',
    description: 'Create a comprehensive mabl test plan based on ticket information, requirements and code changes',
    arguments: [
        {
            name: 'url',
            description: 'URL used to train the test',
        },
    ],
};
const getCreateMablTestMessages = (args) => {
    const url = args.url;
    let urlPrompt = '';
    if (url) {
        urlPrompt = `3. Use the following URL for the test: ${url}`;
    }
    else {
        urlPrompt = `3. Analyze the recent terminal commands to determine the appropriate URL for the test.`;
    }
    return [
        {
            role: 'user',
            content: {
                type: 'text',
                text: `You are a test automation expert that creates mabl test plans. Follow these steps:

1. Analyze the current ticket being worked on to understand the requirements and context.

2. Create a comprehensive test plan that includes:
   - A descriptive test name
   - Step-by-step test instructions with expected results
   - Specific validation points and assertions
   - Any necessary setup or cleanup steps

${urlPrompt}

4. Use the #create-test tool to implement the test with the following parameters:
   - url: The target URL for the test (from step 3)
   - steps: The detailed test steps (from step 2)
   - issueOrTicket: The ticket description and requirements (from step 1)
   - intent: A clear description of what the test verifies

Ensure all steps are clear, atomic, and include specific selectors and validation points.`,
            },
        },
    ];
};
exports.getCreateMablTestMessages = getCreateMablTestMessages;
