import { AgentSkillService, FileAgentSkillActivationRepository, } from '../../../../core/skills/index.js';
export class ControlPlaneSkillsController {
    static async list(workspaceRoot, stateRoot) {
        const service = ControlPlaneSkillsController.service(workspaceRoot, stateRoot);
        const overview = await service.listActivationOverview();
        return {
            activationStorePath: FileAgentSkillActivationRepository.resolvePath(stateRoot),
            ...overview,
        };
    }
    static async activate(workspaceRoot, stateRoot, name) {
        return await ControlPlaneSkillsController.service(workspaceRoot, stateRoot).activateSkill(name);
    }
    static async disable(workspaceRoot, stateRoot, name) {
        return await ControlPlaneSkillsController.service(workspaceRoot, stateRoot).disableSkill(name);
    }
    static service(workspaceRoot, stateRoot) {
        return new AgentSkillService({
            workspaceRoot,
            activationStore: new FileAgentSkillActivationRepository({ stateRoot }),
        });
    }
}
//# sourceMappingURL=skills.js.map