"use strict";
// SPDX-License-Identifier: AGPL-3.0-or-later
// Copyright (C) 2024-2026 Gracker (Chris)
// This file is part of SmartPerfetto. See LICENSE for details.
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
    for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.isLegacySkillEvent = exports.isDataEvent = exports.generateEventId = exports.validateColumnDefinition = exports.validateDataEnvelope = exports.inferColumnDefinition = exports.envelopesToLayeredResult = exports.envelopeToDisplayResult = exports.layeredResultToEnvelopes = exports.displayResultToEnvelope = exports.buildColumnDefinitions = exports.createDataEnvelope = exports.VALID_CLICK_ACTIONS = exports.VALID_COLUMN_FORMATS = exports.VALID_COLUMN_TYPES = exports.createEventCollector = exports.SkillEventCollector = exports.AnswerGenerator = exports.answerGenerator = exports.SmartSummaryGenerator = exports.smartSummaryGenerator = exports.JS_BUILTINS = exports.extractRootVariables = exports.validateFragmentReferences = exports.validateSkillConditions = exports.validateSkillInputs = void 0;
/**
 * Skill Engine
 *
 * A configurable skill system that allows performance experts to define
 * analysis workflows in YAML files without modifying code.
 *
 * Features:
 * - YAML-based skill definitions
 * - Composite skills with multi-step analysis
 * - AI-assisted diagnostics and summaries
 * - Automatic skill matching based on keywords and patterns
 * - Variable substitution in SQL queries
 * - Real-time execution events
 */
// =============================================================================
// Types
// =============================================================================
__exportStar(require("./types"), exports);
// =============================================================================
// Skill Loader
// =============================================================================
__exportStar(require("./skillLoader"), exports);
// =============================================================================
// Skill Executor
// =============================================================================
__exportStar(require("./skillExecutor"), exports);
// =============================================================================
// Skill Analysis Adapter
// =============================================================================
__exportStar(require("./skillAnalysisAdapter"), exports);
// =============================================================================
// Skill Validator
// =============================================================================
var skillValidator_1 = require("./skillValidator");
Object.defineProperty(exports, "validateSkillInputs", { enumerable: true, get: function () { return skillValidator_1.validateSkillInputs; } });
Object.defineProperty(exports, "validateSkillConditions", { enumerable: true, get: function () { return skillValidator_1.validateSkillConditions; } });
Object.defineProperty(exports, "validateFragmentReferences", { enumerable: true, get: function () { return skillValidator_1.validateFragmentReferences; } });
// =============================================================================
// Expression Utilities
// =============================================================================
var expressionUtils_1 = require("./expressionUtils");
Object.defineProperty(exports, "extractRootVariables", { enumerable: true, get: function () { return expressionUtils_1.extractRootVariables; } });
Object.defineProperty(exports, "JS_BUILTINS", { enumerable: true, get: function () { return expressionUtils_1.JS_BUILTINS; } });
// =============================================================================
// Utilities
// =============================================================================
var smartSummaryGenerator_1 = require("./smartSummaryGenerator");
Object.defineProperty(exports, "smartSummaryGenerator", { enumerable: true, get: function () { return smartSummaryGenerator_1.smartSummaryGenerator; } });
Object.defineProperty(exports, "SmartSummaryGenerator", { enumerable: true, get: function () { return smartSummaryGenerator_1.SmartSummaryGenerator; } });
var answerGenerator_1 = require("./answerGenerator");
Object.defineProperty(exports, "answerGenerator", { enumerable: true, get: function () { return answerGenerator_1.answerGenerator; } });
Object.defineProperty(exports, "AnswerGenerator", { enumerable: true, get: function () { return answerGenerator_1.AnswerGenerator; } });
var eventCollector_1 = require("./eventCollector");
Object.defineProperty(exports, "SkillEventCollector", { enumerable: true, get: function () { return eventCollector_1.SkillEventCollector; } });
Object.defineProperty(exports, "createEventCollector", { enumerable: true, get: function () { return eventCollector_1.createEventCollector; } });
// =============================================================================
// Data Contract (v2.0 - DataEnvelope refactoring)
// =============================================================================
// Re-export DataEnvelope types and utilities for convenience
var dataContract_1 = require("../../types/dataContract");
// Validation types
Object.defineProperty(exports, "VALID_COLUMN_TYPES", { enumerable: true, get: function () { return dataContract_1.VALID_COLUMN_TYPES; } });
Object.defineProperty(exports, "VALID_COLUMN_FORMATS", { enumerable: true, get: function () { return dataContract_1.VALID_COLUMN_FORMATS; } });
Object.defineProperty(exports, "VALID_CLICK_ACTIONS", { enumerable: true, get: function () { return dataContract_1.VALID_CLICK_ACTIONS; } });
// Factory and utility functions
Object.defineProperty(exports, "createDataEnvelope", { enumerable: true, get: function () { return dataContract_1.createDataEnvelope; } });
Object.defineProperty(exports, "buildColumnDefinitions", { enumerable: true, get: function () { return dataContract_1.buildColumnDefinitions; } });
Object.defineProperty(exports, "displayResultToEnvelope", { enumerable: true, get: function () { return dataContract_1.displayResultToEnvelope; } });
Object.defineProperty(exports, "layeredResultToEnvelopes", { enumerable: true, get: function () { return dataContract_1.layeredResultToEnvelopes; } });
Object.defineProperty(exports, "envelopeToDisplayResult", { enumerable: true, get: function () { return dataContract_1.envelopeToDisplayResult; } });
Object.defineProperty(exports, "envelopesToLayeredResult", { enumerable: true, get: function () { return dataContract_1.envelopesToLayeredResult; } });
Object.defineProperty(exports, "inferColumnDefinition", { enumerable: true, get: function () { return dataContract_1.inferColumnDefinition; } });
Object.defineProperty(exports, "validateDataEnvelope", { enumerable: true, get: function () { return dataContract_1.validateDataEnvelope; } });
Object.defineProperty(exports, "validateColumnDefinition", { enumerable: true, get: function () { return dataContract_1.validateColumnDefinition; } });
Object.defineProperty(exports, "generateEventId", { enumerable: true, get: function () { return dataContract_1.generateEventId; } });
Object.defineProperty(exports, "isDataEvent", { enumerable: true, get: function () { return dataContract_1.isDataEvent; } });
Object.defineProperty(exports, "isLegacySkillEvent", { enumerable: true, get: function () { return dataContract_1.isLegacySkillEvent; } });
//# sourceMappingURL=index.js.map