"use strict";
/**
 * CompositeCapabilityProvider — primary/fallback composite for capability packs.
 *
 * Story 1.2 — OpenLife v1.3 Agent OS Integration.
 *
 * Mirrors CompositeAgentProvider / CompositeSkillProvider / CompositeSquadProvider.
 * Primary returns its full list if non-empty; otherwise fallback. Used by the
 * registry layer (Story 1.4) to chain file → cloud sources.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.CompositeCapabilityProvider = void 0;
class CompositeCapabilityProvider {
    primary;
    fallback;
    constructor(primary, fallback) {
        this.primary = primary;
        this.fallback = fallback;
    }
    list() {
        const data = this.primary.list();
        return data.length ? data : this.fallback.list();
    }
}
exports.CompositeCapabilityProvider = CompositeCapabilityProvider;
