"use strict";
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
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);
};
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.agentConstructors = exports.includedTools = exports.tools = exports.PatchingAgent = exports.DeveloperAgent = exports.ConfigAgent = exports.BaseAgent = void 0;
exports.createAgent = createAgent;
exports.agents = agents;
const services_1 = require("../services");
const developer_1 = require("./developer/developer");
Object.defineProperty(exports, "DeveloperAgent", { enumerable: true, get: function () { return developer_1.DeveloperAgent; } });
const patcher_1 = require("./patcher/patcher");
Object.defineProperty(exports, "PatchingAgent", { enumerable: true, get: function () { return patcher_1.PatchingAgent; } });
const researcher_1 = require("./researcher/researcher");
const setup_1 = require("./setup/setup");
var base_1 = require("./base/base");
Object.defineProperty(exports, "BaseAgent", { enumerable: true, get: function () { return base_1.BaseAgent; } });
var ConfigAgent_1 = require("./configurable/ConfigAgent");
Object.defineProperty(exports, "ConfigAgent", { enumerable: true, get: function () { return ConfigAgent_1.ConfigAgent; } });
__exportStar(require("./researcher/researcher"), exports);
exports.tools = __importStar(require("./tools"));
var list_1 = require("./tools/list");
Object.defineProperty(exports, "includedTools", { enumerable: true, get: function () { return list_1.includedTools; } });
exports.agentConstructors = {
    Developer: developer_1.DeveloperAgent,
    Patcher: patcher_1.PatchingAgent,
    Researcher: researcher_1.ResearcherAgent,
    Setup: setup_1.SetupAgent,
};
function createAgent(agentName, agentContext = (0, services_1.services)()) {
    const AgentClass = exports.agentConstructors[agentName];
    if (!AgentClass) {
        throw new Error(`Agent "${agentName}" not found. Available agents: ${Object.keys(exports.agentConstructors).join(", ")}`);
    }
    return new AgentClass(agentContext);
}
function agents(agentContext = (0, services_1.services)()) {
    return {
        Developer: new developer_1.DeveloperAgent(agentContext),
        Patcher: new patcher_1.PatchingAgent(agentContext),
        Researcher: new researcher_1.ResearcherAgent(agentContext),
        Setup: new setup_1.SetupAgent(agentContext),
    };
}
//# sourceMappingURL=index.js.map