"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DEFAULT_SUGGESTIONS = void 0;
exports.DEFAULT_SUGGESTIONS = Object.freeze({
    'step.unknown_type': {
        suggestion: "This step type is not recognized. Run mabl_get_schema_resource(uri: 'mabl-schema://step') to see the full menu of supported step types.",
    },
    'step.descriptor_not_object': {
        suggestion: 'A step is a singleton map: { StepType: { ...descriptor } }. Wrap the descriptor in an object.',
    },
    'step.empty': {
        suggestion: 'A step needs exactly one key naming the step type. Pick a step type from mabl-schema://step.',
    },
    'step.multiple_keys': {
        suggestion: 'A step has exactly one top-level key. Split into multiple steps if you meant to do two things.',
    },
    'step.not_object': {
        suggestion: 'Each step is an object with one key (the step type). Replace the value with `{ <StepType>: { ... } }`.',
    },
    'semantic.viewport_non_ai_condition': {
        suggestion: 'Viewport targets only support ai_prompt conditions. Either change `target` to a find descriptor (so it points at an element), or set `condition.conditionType` to "ai_prompt".',
    },
    'semantic.ai_prompt_missing_observation_scope': {
        suggestion: 'Set `observationScope` on the assert step to scope mabl\'s AI evaluation. Two values are accepted: "page" (the whole viewport) or "element" (only the resolved find target). Example: `"observationScope": "page"`.',
    },
    'cross_step.unclosed_if': {
        suggestion: 'Add an End step after the last branch to close this If block.',
    },
    'cross_step.orphan_branch': {
        suggestion: 'ElseIf/Else must follow an If. Add a leading If or remove the orphan branch.',
    },
    'cross_step.orphan_end': {
        suggestion: 'End closes an If block that doesn’t exist. Add the matching If, or delete this End.',
    },
    'cross_step.duplicate_else': {
        suggestion: 'An If block can have at most one Else branch. Convert the second Else to ElseIf, or merge the branches.',
    },
    'cross_step.elseif_after_else': {
        suggestion: 'ElseIf must come before Else within an If block. Reorder the branches so Else is last.',
    },
});
