"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AgentVariantsError = exports.ERROR_CODES = void 0;
exports.ERROR_CODES = [
    'INVALID_STAGE_ACTION',
    'INVALID_TRANSITION',
    'MISSING_REQUIRED_INPUT',
    'STALE_LEASE',
    'LEASE_EXPIRED',
    'LEASE_MISMATCH',
    'PENDING_CHANGE_CONFLICT',
    'SCHEMA_VALIDATION_FAILED',
    'RUNTIME_VALIDATION_FAILED',
    'CLEANUP_TIMEOUT',
    'DEPENDENCY_FAILED',
    'SESSION_NOT_FOUND',
    'WORK_ITEM_NOT_FOUND',
    'UNSUPPORTED_FRAMEWORK',
    'UNKNOWN_DESIGN_SYSTEM',
    'DESTINATION_NOT_EMPTY',
    'SCAFFOLD_FAILED',
    'SOURCE_CONTEXT_INVALID',
    'SOURCE_CONTEXT_TOO_LARGE',
    'VARIANT_NOT_EDITABLE',
    'VARIANT_QA_FAILED',
];
class AgentVariantsError extends Error {
    code;
    detail;
    constructor(code, message) {
        super(`[${code}] ${message}`);
        this.code = code;
        this.detail = message;
        this.name = 'AgentVariantsError';
    }
}
exports.AgentVariantsError = AgentVariantsError;
//# sourceMappingURL=errors.js.map