/**
 * Process-wide store for skills loaded at boot time. Read by the `/skills`
 * slash command and other UI surfaces that need to inspect what loaded.
 *
 * The bootstrap calls `setLoadedSkills` once per init; the `/skills`
 * command reads via `getLoadedSkills`. Kept deliberately small - this is
 * a singleton for in-process state, not a registry implementation.
 */
let state = {
    skills: [],
    loadErrors: [],
    collisions: [],
};
export function setLoadedSkills(next) {
    state = next;
}
export function getLoadedSkills() {
    return state.skills;
}
export function findSkill(name) {
    return state.skills.find(s => s.name === name);
}
export function resetSkillRegistry() {
    state = { skills: [], loadErrors: [], collisions: [] };
}
//# sourceMappingURL=skill-registry.js.map