/**
 * AgentSessionRepositoryRegistry
 *
 * Resolves the correct IAgentSessionRepository implementation for a given
 * AgentType via per-provider tsyringe tokens.
 *
 * Token scheme: "IAgentSessionRepository:<agentType>"
 * Example: "IAgentSessionRepository:claude-code" → ClaudeCodeSessionRepository
 *
 * Infrastructure-layer adapter that implements the application-layer
 * IAgentSessionRepositoryRegistry port. Use cases inject the port via
 * the 'IAgentSessionRepositoryRegistry' string token — they never see
 * this concrete class or the tsyringe container.
 *
 * Adding a new provider requires only registering a new token in the
 * container.
 */
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
import { injectable } from 'tsyringe';
import { container } from 'tsyringe';
let AgentSessionRepositoryRegistry = class AgentSessionRepositoryRegistry {
    /**
     * Resolve the session repository for the given agent type.
     *
     * @param agentType - The agent type to resolve a repository for
     * @returns The IAgentSessionRepository implementation for the agent type
     */
    getRepository(agentType) {
        return container.resolve(`IAgentSessionRepository:${agentType}`);
    }
};
AgentSessionRepositoryRegistry = __decorate([
    injectable()
], AgentSessionRepositoryRegistry);
export { AgentSessionRepositoryRegistry };
